If i have defined an temperory dataset in step2, how can i
call back or use the same dataset in step5 of the same job
Answers were Sorted based on User's Feedback
Answer / ashwani
With the help of referback we can do so , the syntax is
//ddname dd dsn=*.stepname.ddname
Is This Answer Correct ? | 14 Yes | 2 No |
Answer / santy
You can do this with help of referback prodcedurewe, the
syntax is
//STEP05 dd dsn=*.STEP02.DDNAME
Is This Answer Correct ? | 11 Yes | 1 No |
Temporary data set can be accessed as mentioned below.
//STEP02 EXEC PGM=PGM1
//SYSOUT DD
SYSOUT=*
//SYSUDUMP DD
SYSOUT=*
//INPCTL DD DSN=SYS1.PROD.CTLLIB(P89CTL),DISP=SHR
//DATEFILE DD DSN=P1.DATEFILE,DISP=SHR
//OUTCTL DD DSN=&&TMP01,DISP=
(NEW,PASS,DELETE),
// UNIT=PROD,SPACE=(TRK,
(10,10),RLSE),
// DCB=
(RECFM=FB,LRECL=80,BLKSIZE=0)
This can be reffered in step 05 as:
//STEP05 EXEC PGM=FTP,PARM='(EXIT TIMEOUT 300'
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//OUTPUT DD SYSOUT=*
//INPUT DD DISP=SHR,DSN=SYS1.PROD.CTLLIB(P89CLT2)
// DD DSN=&&TMP01,DISP=SHR
Check for the &&TMP01 named temporary data set
Is This Answer Correct ? | 6 Yes | 2 No |
i have 10steps and i want run step3 and based on step3 i want execute step7,8,9,10?in jcl
if we give TIME=0 how many sec that job/step
Explain how can an in-stream dataset be terminated?
what is inrec fields and outrec fields in sorting
How can we see data in TEMPARARY DATA SET in JCL ?
How are datasets concatenated?
how many members can be created inside a single pds?
i have 5 steps to execute in that i want to skip 3nd step and start execute from forth step how can u do this.
1)what is compilation jcl for cobol program but it is calling another program 2)what is compilation jcl for cobol program but it is calling another program(in this, main program is pure cobol but sub program is cobol+db2 program.can anyone please answer me for above questions. it's very urgent
How can a jobs execution priority be modified?
a input file contains 1000 records, how to move the first 500 record into one out put file and how to move to second 500 records to anothere output file
In job processing, what happens in conversion stage?