Answer Posted / amit krishna
You can pass inputs to a PL/1 Program through a JCL by two ways.
1- Through PARM.
Through this method PARM=parameter keyword is mentioned on the EXEC statement in JCL. The supplied PARM should be received through an argument in MAIN PL/1 program & Further declared accordingly.
//STEP02 EXEC PGM=PL1PGM,
// PARM='20110423'
PL1PGM: PROC(PARM) OPTIONS(MAIN);
2- Through SYSIN
Through this method SYSIN statement followed by the parameter to be placed in the JCL. In the PL/1 program
It is necessary to use a "//SYSIN DD *" statment in the JCL.
//STEP02 EXEC PGM=PL1PGM
|
|
//SYSIN DD *
20110423
/*
OR You can write the input in a file.
//SYSIN DD DISP=SHR,DSN=MY.INPUT.DATASET(INPUT)
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
We have an output dataset in job with disp parameter as shr.
How many bytes does a s9(7) comp-3 field occupy ?
Can I redefine an x(100) field with a field of x(200)?
Name the versions of ibm mainframes have introduced in the market?
What is meant by an isolation level?
Where is the vsam ksds placed?
What is defragmentation and what is its advantage?
Can you explain referential integrity?
List the type of locks and explain each of them.
Explain host variables?
Name the various types of tables spaces.
What is meant by comp-3 and what is it used for?
What is the meaning of a (new, catalog, keep) disposition mean?
Can I redefine an x(200) field with a field of x(100) ?
Is it possible to move the alphanumeric variables to a numeric variable?