| IBM MAINFRAME HELP & SUPPORT FORUMS Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| 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: 3304
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 |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|