View previous topic :: View next topic
|
Author |
Message |
seshagir
New User
Joined: 12 Sep 2007 Posts: 4 Location: chennai
|
|
|
|
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
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
|