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

Define the necessity of run stats among the environment test?

0 Answers  


State the maximum number of tables that can be joined?

0 Answers  


Explain path?

0 Answers  


How is next sentence and continue different?

0 Answers  


how do u debug without using xpeditor ?

1 Answers   TCS,






How to compare two files by using sort?

0 Answers  


error code 7030 cpf7030 what is the level check error

1 Answers  


What is the function of the verb initialize?

0 Answers  


how to get last 100 records in file-aid?

1 Answers   Syntel,


WHAT IS 3.12,3.14 ? DIFFERENCES?

2 Answers  


Explain paging concept in memory?

0 Answers  


How to move a field DT 9(8) of input file to DT 9(8) COMP-3 in output file in ezytrieve? in the output file entire dt is not moved.If any answer plz reply as soon as possible.

0 Answers  


Categories