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
Write the difference between hidam and hdam databases?
how can we define a gdg?
What is the importance of common attribute?
What is the distinction amongst include and copy?
Explain the meaning of spufi?
What is the mainframe computer?
how do u start your process after conducting impact analysis ?
What are the different types of PL/1 files?
what is the right time for using in-line perform?
What is the term “where” for?
what is the meaning of notcat 2?
can you change the attribute in mapset? if so how?
If anyone has latest IBM Certification Dumps can you pls forwards it to me
how can you define a dataarea(DTAARA) IN RPG? Which spec you define it C-spec/D-spec?
Explain paging concept in memory?