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

about SYSIN data


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
i413678
Currently Banned

Active User


Joined: 19 Feb 2005
Posts: 112
Location: chennai

PostPosted: Mon Apr 03, 2006 7:02 pm
Reply with quote

Hi,

We know that if we give instream data we have to give accept statements in the COBOL program.

situation :

I had given the SYSIN data like following...

//SYSIN DD *
LINE1
LINE2
LINE3
LINE4
LINE5
LINE6
/*

now I want to read directly the LINE4 by skipping the first 3 lines in the instream data using the accept statement....

I want to know whether this can be done if so how........?

thx in advance.

pavan
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Mon Apr 03, 2006 9:29 pm
Reply with quote

hy i413678,

if you want to read SYSIN, you can do this also as for any
normal input file.
for your question:
each accept will give you one record, therefore accept 4 times
and you get the fourth record....

just note: with accept, it should be a record of 80 bytes.

martin9
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 How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top