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

Finding end of instream in COBOL Accept


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Anand78

New User


Joined: 06 Mar 2006
Posts: 50
Location: PUNE

PostPosted: Mon Aug 25, 2008 9:01 pm
Reply with quote

Hi ,


Like we check end of file while reading a file in cobol pgm, is there any
way , if cobol pgm uses ACCEPT to read values from SYSIN card?

//SYSIN DD *
vvvvvvv
aaaaaa
nnnnnn
/*
//

Anand
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Aug 25, 2008 9:14 pm
Reply with quote

Move low values to the field you are accepting, if after the accept it is still low values then you have reached the end of the sysin. Most sites do not allow multiple accepts from sysin.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Finding and researching jobs All Other Mainframe Topics 0
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts VB to FB - Finding LRECL SYNCSORT 4
Search our Forums:

Back to Top