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

Regarding ACCEPT in COBOL


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

New User


Joined: 24 Mar 2005
Posts: 16
Location: Long Island

PostPosted: Wed Mar 29, 2006 3:26 pm
Reply with quote

Hi
I was given a JCL with 8 inputs thru sysin. Is there any way for me to accept directly the 7th input in my program thru ACCEPT? I dont wanna keep 6 Accepts before doing this.

Steve-
Back to top
View user's profile Send private message
Gautam512

Active User


Joined: 05 Oct 2005
Posts: 308
Location: Vizag / US

PostPosted: Wed Mar 29, 2006 5:45 pm
Reply with quote

Hi,

One thing u can do...
predefine the size of the values ur using and if there is no value for one variable keep blanks in the sysin.

By one accept u can get all the values , after getting the entire values in one string, use string options and the predefined size of the values to get individual value.

Hope this is clear...this is one way....

we'll see if we can get any other way...
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 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 Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top