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

What is the use of AT END & NOT AT END in a READ Command


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
Search our Forums:

Back to Top