IBM MAINFRAME HELP FORUMS for COBOL, JCL, CICS, DB2, IMS etc...
Help & Support Forums for IBM Mainframe computers Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7, CA-11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, VSAM, ISPF, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
 

How to handle variable no of inputs in through SYSIN

THIS IS AN ARCHIVE FORUM: CLICK HERE TO GO TO THE ORIGINAL TOPIC

 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> Mainframe COBOL
View previous topic :: View next topic  
Author Message
seshagir



Joined: 12 Sep 2007
Posts: 4
Location: chennai

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

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  
superk



Joined: 26 Apr 2004
Posts: 3097
Location: Charlotte,NC USA

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

Did you already read this previous topic? Does it meet your requirements?
Back to top  
 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> Mainframe COBOL
Page 1 of 1
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
Related Links