How do you pass some input from JCL to PL1?

Answers were Sorted based on User's Feedback



How do you pass some input from JCL to PL1?..

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

How do you pass some input from JCL to PL1?..

Answer / annam ravinder

by using PARM parameter

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More IBM MainFrame AllOther Interview Questions

How can we extract data from IMS DB and load it onto oracle database by converting it.Pls someone help me

2 Answers   TCS,


Can any one tell me that how we go for the compare,unit testing after changing requirement as per client request. this is very helpful for me when u give suitable (coading) exmple.

0 Answers   TCS,


State the maximum value up to which volumes can be inserted to an stogroup?

0 Answers  


what is CCID in endevor, what it is its role?

5 Answers   CTS,


what is the use of overlay keyword

0 Answers  






hi.... anybody send real time project related questions & answers whatever will ask in interview plz.....help me? advanced thanks....

0 Answers  


what is difference between file-aid tool and file-aid utility?

0 Answers   IBM,


Total no of bytes in the following 01 rec-1 02 first-group 03 a1 pic x(4). 03 a2 pic 99. 02 second-group redefines first-group. 03 A3 pic999. 03 A4 pic 999. 02 third-group. 03 A5 occurs 5 times pic 99. A)22 B)16 C)12 D)10

3 Answers   Accenture,


What is basic difference between directory and pds in ibm mainframe?

0 Answers   IBM,


Can you define path?

0 Answers  


how to display the negative numbers?

0 Answers  


Can we move alphanumeric incentive to the numeric field?

0 Answers  


Categories