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
What are the different types of table spaces?
what is the role of the is numeric clause?
When are scope terminators compulsory?
suppose program A is calling program B, at a time A will send 100 records but it has to send 500 records. how it will possible?
What is the mainframe testing? Categorize the mainframe manual testing?
How an empty file to be checked?
what is u r recent task in insurence project?..plz tell how to tell this.
WHAT IS THE PROCESS OF "CLAIM PROCESSING SYSTEM"
can any one exaplin about Decision Tables in test region with good example
List the type of locks and explain each of them.
How to declare host variables?
How to move a field DT 9(8) of input file to DT 9(8) COMP-3 in output file in ezytrieve? in the output file entire dt is not moved.If any answer plz reply as soon as possible.
Why do you need a secondary index in an ims?
How scary is it to write code for a bank?
Can you explain referential integrity?