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 is difference between static call and dynamic call?
What do you mean by an alias?
What are the different types of PL/1 files?
which is more efficient, level 77 or 01?
What is inspect?
how would find total records in files using sequential?
WHAT IS THE PROCESS OF "CLAIM PROCESSING SYSTEM"
What is the difference between hidam and hdam databases?
What is the need of running runstats in the test environment?
can any one exaplin about Decision Tables in test region with good example
How many bytes does a s9(7) sign trailing separate field occupy ?
What are the error (ONCODES) codes did you encounter in PL/1 programme?
Explain delete-connected tables?
What is defragmentation and what is its advantage?
What is mainframe testing?