How do you pass some input from JCL to PL1?

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


Please Help Members By Posting Answers For Below Questions

What is mainframe application testing?

583


what difference exists between control area and control interval?

589


how do u start your process after conducting impact analysis ?

1669


How do you create a like table?

545


How can a like table be created?

553






can any body give me any website for getting help on mainframe projectts in banking domain.

1639


What is meant by deadlock in db2?

653


What is the advantage of defragmentation?

533


What is Framework & How it work?

1654


What is the function of currentdata option in bind?

575


how do we prepare test data using file-aid tool?

2108


have you ever know what is the meaning of Packed Decimal  

1136


Tell me abt any another framework which is challening for Ibm framework

1650


What are the error (ONCODES) codes did you encounter in PL/1 programme?

2479


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

2042