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 |
How do you send the output of a COBOL program to a member of a PDS?
List the different components of jcl statement?
How is a dataset passed from one step to another?
What is primary allocation for a dataset?
Can I share my data with other jobs? How?
What is the differentiation between TRK,cyl, and Bytes... how they can be connected??
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
I need exexution process for JCL programs
Please explain with syntax and an example, the Inrec fields and Outrec build in sort.
Is automatic restart possible in jcl? If yes, how?
What does a disposition of (new,catlg,keep) for a dsn mean?
Explain how can a stopped job be started again?