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
Why is free space left in ksds dataset?
Is the order of the when clause significant in an evaluate statement?
Define where and its usage?
Differentiate between hdam and the hidam databases?
Explain path?
What is meant by deadlock in db2?
how can we describe comp sync?
Explain lock contention?
State the maximum number of tables that can be joined?
What are the error (ONCODES) codes did you encounter in PL/1 programme?
what about F1 & F2 keys in xpeditor? And their functionalities?
Explain isolation level?
how can we repair a soc-7 error?
hi.... anybody send real time project related questions & answers whatever will ask in interview plz.....help me? advanced thanks....
What is the advantage of defragmentation?