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

How does the jcl specify the job to os?

0 Answers  


What methodology can be adapted to transfer data to a program that is coded using the exec statement?

0 Answers  


How to Enter The Spool Area In Real Time?

7 Answers   IBM,


what is the function of iebcompr?....is it compare record length or characteristics of a dataset?...pls explain with examples.......

2 Answers  


consider the following progrm statements MOVE 0 TO SW.NO.OF.REC PERFORM PRI-OUT UNTIL SW=1 DISPALY NO.OF.REC STOP RUN PRE-OUT READ IN-FILE AT END MOVE 1 TO SW WRITE OUO-REC FROM IN-REC ADD 1 TO NO.OF REC if the IN-FILE contains 1000 records what value will be displayed after the PERFORM is over? assume that N0.OF.REC has PIC 9(4) a.1000 b.1001 c.1 d.none of the above

1 Answers  






In one of intervie, my interviwer asked, I have a file which contains 4 records I would like to split the 4 different outputs for each record how to do?

14 Answers   Cap Gemini, Cognizant, JPMorgan Chase, TCS, Xansa,


How to run cobol program using jcl?

0 Answers  


whats the diff bw the evaluate also and and?

0 Answers   CGI,


What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?

12 Answers   Convergys,


Are there any set of rules for the names of the steps used in a job? What are they?

0 Answers  


Explain about Cobol Subroutines

1 Answers  


What is the differentiation between TRK,cyl, and Bytes... how they can be connected??

2 Answers  


Categories