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



If i have defined an temperory dataset in step2, how can i call back or use the same dataset in st..

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

If i have defined an temperory dataset in step2, how can i call back or use the same dataset in st..

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

If i have defined an temperory dataset in step2, how can i call back or use the same dataset in st..

Answer / swapnilkumar

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

If i have defined an temperory dataset in step2, how can i call back or use the same dataset in st..

Answer / sampath

Refer back will do here.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More JCL Interview Questions

i have 10steps and i want run step3 and based on step3 i want execute step7,8,9,10?in jcl

1 Answers  


if we give TIME=0 how many sec that job/step

13 Answers  


Explain how can an in-stream dataset be terminated?

0 Answers  


what is inrec fields and outrec fields in sorting

3 Answers   Fidelity,


How can we see data in TEMPARARY DATA SET in JCL ?

7 Answers   CSC, Polaris,






How are datasets concatenated?

3 Answers   CitiGroup,


how many members can be created inside a single pds?

8 Answers  


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.

7 Answers   Syntel,


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

4 Answers   Mind Tree,


How can a jobs execution priority be modified?

0 Answers  


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

6 Answers   ITC Infotech,


In job processing, what happens in conversion stage?

0 Answers  


Categories