How do you override a parameter in Positional parameters?
Answers were Sorted based on User's Feedback
Answer / mahesh
//STEP EXEC PGM=PRGM1
//DD01 DD DSN=DATA.SET.LIB,DISP=SHR
and if you want to override,then
you have to write like
//STEP.DD01 DD DSN=DATA.SET.OVERRIDE,DISP=SHR
This will override the dataset(data.set.lib)
Is This Answer Correct ? | 8 Yes | 5 No |
Answer / rajesh_m13
By providing Stepname.patameter name
i.e // exec procedurename,parameter.ddname with changed
parameters
Is This Answer Correct ? | 3 Yes | 2 No |
Answer / pankaj
By Putting ', ,' in place pf positional parameters
Is This Answer Correct ? | 0 Yes | 0 No |
a jcl has 2 steps. How to code the jcl such that if step1 abends, then step2 runs. Else, job terminates with step1?
what is the use of IEBGENER utility?
Passing a variable parm from JCL to a cobol/db2 program
how to skip the steps in JCl
how JCL works?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
what is a cataloged procedure ?
We have an output dataset in job with disp parameter as SHR. Can we write data in that file dataset?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
explain concatinating datasets?
Please go thru the below points and let me know how to code this. 1. Sort the input dataset for the condition : Starting position is 37,length of the field is 13 based on character and in the ascending order , starting from position 25 length of 12 ,character and in the ascending order. Use a temporary dataset to hold the sorted file. 2. Use the temporary file created in the above step as the input for the next step. The next step is to execute a program and produce an output file. Use the temporary file created in the above as work file 1 and the output of the file to be created in this step work file 2.Also, pass a parameter to the program that is to be executed in this step. The parameter should have the current date in YYYYMMDD format. For the sake of convenience, you can use the below Job Name : Sample1 Input DSN : PCABDT11.CABD.TEST.INPUT Temporary DSN : Sort1 Output DSN : PCABDT11.CABD.TEST.OUTPUT Program Name : SAMPLE Thanks in Advance for your response.
WORKING-STORAGE SECTION. 1 GROUP-ITEM. 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50. 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP. PROCEDURE DIVISION. MOVE ZERO TO GROUP-ITEM. ADD 50 TO AMOUNT-1. DISPLAY AMOUNT-1. STOP RUN.