How do you pass some input from JCL to PL1?
Answers were Sorted based on User's Feedback
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 |
PLEASE SEND ME THE DOCUMENTS IF ANY ONE HAVE REGARDING THE IMPACT ANALYSYS,REVIEWS
what are the common errors that occured while programming in AS/400?
HOW CAN YOU VIEW LAST 10 DATASETS CREATED BY YOU?
Can records be accessed randomly in esds?
Hi all, I have >200 members per Dataset, I need to delete 2 lines from all members of a Dataset. To do Manually it is difficult. So please tell me simple method. is there any Tool or........
What is the mainframe computer?
how will you find a particular line in debugging if its a infinite loop
what is CCID in endevor, what it is its role?
how to change pic of variables declared in copy book inside progrm?
Can you explain referential integrity?
Can we move alphanumeric incentive to the numeric field?
How many bytes does a s9(7) sign trailing separate field occupy ?