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 difference between static call and dynamic call?

550


What do you mean by an alias?

524


What are the different types of PL/1 files?

1730


which is more efficient, level 77 or 01?

604


What is inspect?

563






how would find total records in files using sequential?

560


WHAT IS THE PROCESS OF "CLAIM PROCESSING SYSTEM"

1943


What is the difference between hidam and hdam databases?

542


What is the need of running runstats in the test environment?

580


can any one exaplin about Decision Tables in test region with good example

2270


How many bytes does a s9(7) sign trailing separate field occupy ?

626


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

2473


Explain delete-connected tables?

610


What is defragmentation and what is its advantage?

546


What is mainframe testing?

573