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 |
what difference exists between control area and control interval?
how can u view a vsam file using file-aid
What is linkage section?
01 A 02 B occurs 10 times 03 C pic 999. 03 D occurs 15 times 04 E pic 999. 04 F occurs 20 times 05 G pic XXX. 05 H pic 99. Determine the total no of byte in A. A) 175 B) 15480 C) 21750 D) 9065
Redefines clause cannot be used in a) working-storage section b) 77 c) 66 d) elementary
Why is free space left in ksds dataset?
is it possible to write array elements to pf
Why are you looking for a change?
WHAT IS THE PROCESS OF "CLAIM PROCESSING SYSTEM"
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?
How will u give input data to cobol program apart from PARM & Instream data?
What is the difference between hdam and hidam databases?