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
 
How to handle variable no of inputs in through SYSIN

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

New User


Joined: 12 Sep 2007
Posts: 4
Location: chennai

PostPosted: Fri Jul 04, 2008 1:27 pm    Post subject: How to handle variable no of inputs in through SYSIN
Reply with quote

I have an requirement to write a COBOL program to take input from SYSIN which has variable no of inputs.

I am providing two scenarios. The Program needs to handle both the Scenarios.

Scenario -1

//Step01 Exec PGM=TESTPGM
//SYSOUT DD SYSOUT=*
.
.
//SYSIN DD *
PARM1
PARM2
PARM3
/*


Scenario -2

//Step01 Exec PGM=TESTPGM
//SYSOUT DD SYSOUT=*
.
.
//SYSIN DD *
PARM1
PARM2
PARM3
PARM4
PARM5
/*

means we don't know the no of inputs in SYSIN. But the Program has to execute for any no. of inputs passed through SYSIN


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

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Fri Jul 04, 2008 1:39 pm    Post subject: Reply to: How to handle variable no of inputs in through SYS
Reply with quote

Did you already read this previous topic? Does it meet your requirements?
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 Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Move from Comp3 variable to Edited Va... sreekusr COBOL Programming 8 Thu Aug 10, 2017 4:20 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts Can I traverse a STEM variable? chong.zhou CLIST & REXX 5 Wed May 31, 2017 3:54 pm

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