Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
What is the use of AT END & NOT AT END in a READ Command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
markanthos

New User


Joined: 28 Apr 2005
Posts: 14
Location: India

PostPosted: Thu Apr 28, 2005 11:42 am    Post subject: What is the use of AT END & NOT AT END in a READ Command
Reply with quote

What is the use of AT END & NOT AT END in a READ FILE command?
Back to top
View user's profile Send private message

squid_rocks

New User


Joined: 21 Mar 2005
Posts: 15
Location: Pune, INDIA

PostPosted: Thu Apr 28, 2005 12:27 pm    Post subject:
Reply with quote

Hi,
The AT END and NOT AT END clause is used with READ command

Plz refer the command below:

READ filename....
AT END
STMT 1
STMT 2
NOT AT END
STMT 1
STMT 2
...
END-READ

at end clause is used to perform some statements or paras when the EOF or end of file occurs.
so goes for not at end

generally at end is used, not at end is not much used, but it can be used all the same.

we can give statements to perform or we can give para names etc

hope it helps
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 Rexx command to open an another text ... Bharath Vikraman PC Guides & IT News 7 Sat May 12, 2018 4:34 pm
No new posts IBM Pcomm macro startmacro command do... JGregoire IBM Tools 0 Wed May 09, 2018 12:16 pm
No new posts How to use STDPARM with df command maxsubrat JCL & VSAM 5 Fri May 04, 2018 7:57 pm
No new posts Procopt G -concurrent Read balacsv2 IMS DB/DC 1 Mon Apr 23, 2018 5:03 pm
No new posts Need help with 002-030 ABEND in TSO R... Terry Tallian TSO/ISPF 1 Sat Mar 17, 2018 1:13 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us