View previous topic :: View next topic
|
Author |
Message |
Lord.of.Wind
New User
Joined: 17 Nov 2005 Posts: 60
|
|
|
|
FILE1 is a VSAM file.
Could anybody kindly tell me if (START FILE1 KEY IS = WS-POSITION)
READ FILE1 NEXT = READ NEXT FILE1 ?
In my thought,
READ FILE1 NEXT will firstly read the file, and then move the pointer to next position;
READ NEXT FILE1 will firstly move the pointer to next position, and then read the file. |
|
Back to top |
|
|
GeneNorman
New User
Joined: 26 May 2006 Posts: 8 Location: Madison, Wisconsin USA
|
|
|
|
This is what the manual says it the syntax of the format 1 READ
Code: |
___ Format 1: sequential retrieval _____________________________________
| |
| >>__READ__file-name-1__ ______ __ ________ __________________________> |
| |_NEXT_| |_RECORD_| |
| |
| >__ ____________________ ____________________________________________> |
| |_INTO__identifier-1_| |
| |
| >__ _____________________________________ ___________________________> |
| |_ ____ __END__imperative-statement-1_| |
| |_AT_| |
| |
| >__ __________________________________________ __ __________ _______>< |
| |_NOT__ ____ __END__imperative-statement-2_| |_END-READ_| |
| |_AT_| |
| |
|________________________________________________________________________|
|
READ NEXT FILENAME will return a compile time error, which you could have discovered by trying it! |
|
Back to top |
|
|
|