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 |
Attended Xansa Interview , Asked Questions : 1) Diff between Renames and Redefines 2) Comp and Comp -3 3) What will happen if DISP = ( NEW, DELETE, KEEP) 4) Gave one scenario like , if PIC clause X(50) has to be increased to X(70) how u will proceed with this change. 5) Diff between Section and Paragraph
Explain isolation level?
what are the present versions of all mainframe modules?can any body let me know pls
What is downtime and what might be the reason?
can we describe the results of opening for input empty vsam files in a cobol program?
what are the common errors that occured while programming in AS/400?
What is the mainframe testing? Categorize the mainframe manual testing?
How are type 1 and type 2 indexes different?
what is difference between file-aid tool and file-aid utility?
what is the main purpose of using file-aid ?
2 Answers NIIT, Tech Mahindra,
How many module come in Ibm framework?
suppose I have 1000 rows in a db2 table. I want to update first 100 records, how do I do it?