Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

READ FILE1 NEXT ?= READ NEXT FILE1

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: READ FILE1 NEXT ?= READ NEXT FILE1
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    Post subject: Read the Manual! :roll:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Read of TDQ fails in LENGERR Tracy Hansen CICS 10 Wed Apr 05, 2017 12:10 am
No new posts CICS VSAM RLS READ akodakka CICS 3 Tue Oct 04, 2016 3:09 pm
No new posts Multi row fetch - "for read only... Nileshkul DB2 3 Sun Aug 14, 2016 12:52 am
No new posts To read from Zeke scheduler p.anbuselvan CLIST & REXX 5 Thu Mar 31, 2016 1:13 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us