How do you pass some input from JCL to PL1?
Answers were Sorted based on User's Feedback
Answer / 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 |
A word in the computer memory is identified by_________
How are type 1 and type 2 indexes different?
what is the difference between FB & FBA?
Write the difference between hidam and hdam databases?
can we use already existing access path?
How scary is it to write code for a bank?
which one of the following cannot cause more than one execution of paragraph that may be nam in statement. A) simple perform B) perform with time C) perform until D) perform varying
What is difference between static call and dynamic call?
what are the ARRAY operations in rpg/400?
Explain the meaning of spufi?
Is the order of the when clause significant in an evaluate statement?
What is the mainframe testing? Categorize the mainframe manual testing?