IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

READ FILE1 NEXT ?= READ NEXT FILE1


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Lord.of.Wind

New User


Joined: 17 Nov 2005
Posts: 60

PostPosted: Wed Jun 07, 2006 7:49 am
Reply with quote

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
View user's profile Send private message
GeneNorman

New User


Joined: 26 May 2006
Posts: 8
Location: Madison, Wisconsin USA

PostPosted: Fri Jun 09, 2006 2:34 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Random read in ESDS file by using RBA JCL & VSAM 6
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts ICETOOL to Read records SMF CEF it is... DFSORT/ICETOOL 4
No new posts Read a flat file and update DB2 table JCL & VSAM 2
Search our Forums:

Back to Top