Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 4649
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 Can I traverse a STEM variable? chong.zhou CLIST & REXX 5 Wed May 31, 2017 3:54 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Need inputs on Space requirement and... ashek15 IMS DB/DC 0 Sat Apr 01, 2017 8:26 am
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us