[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: [sqr-users] (no subject)




Why not issue the first read statement outside of your process loop.
For example....

open file ... blahh... blahh...
read              !  reads first record which is the header
do process-detail-records      <--- this would read the remainder of the
file and check for EOF conditions, etc
close file




                                                                                
                           
                      Dan Lemos                                                 
                           
                      <dlemos@aeacu.com        To:       
"'sqr-users@sqrug.org'" <sqr-users@sqrug.org>     
                      >                        cc:       (bcc: Rick 
Creel/IT/Aon Consulting)               
                                               Subject:  [sqr-users] (no 
subject)                          
                      11/12/2002 03:44                                          
                           
                      PM                                                        
                           
                      Please respond to                                         
                           
                      sqr-users                                                 
                           
                                                                                
                           
                                                                                
                           





Is it possible to open a file for reading but have it skip the first line
in
this file?  The first line is a header and the data I need to pull from
this
file starts under this header.

Currently I am manually opening this file and deleting the first line but
would like to see if I can have this automated.

The file I am opening is a flat file with a fixed length layout.
Any help is appreciated.
Dan

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users




_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users