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

what is the msg id for   OPNQRYF?

1 Answers  


Can you define notcat 2?

0 Answers  


Explain the meaning of spufi?

0 Answers  


What is the contrast between delimited by space and delimited by size?

0 Answers  


A word in the computer memory is identified by_________

0 Answers   IBM,






in options (main) , what is meaning of main . if u not used main what will happen? After compiling, os will not understand where to load and execute from

0 Answers   AppLabs,


how could you write a program in a structured format?

0 Answers   IBM,


Is it possible to move the alphanumeric variables to a numeric variable?

0 Answers  


HOW CAN YOU VIEW LAST 10 DATASETS CREATED BY YOU?

2 Answers  


What are the different types of string function in PL/1?

1 Answers   IBM,


Does qtp tool support mainframe application testing?

0 Answers  


Why banking use IBM framework?

1 Answers   IBM,


Categories