|
|
| 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 |
|
 |
References
|
Posted: Fri Jul 04, 2008 1:27 pm Post subject: Re: How to handle variable no of inputs in through SYSIN |
 |
|
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3098 Location: Charlotte,NC USA
|
|
| Back to top |
|
 |
|
|