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 can I write the joblog in the spool on normal end of a job step and direct the joblog to a dataset only if the step abends?
Can we give TIME = (1440, 59) also ? or is TIME = (1439, 59) is the last one ?
What is GDG?
what is DSN in JCL and what are the parameters to declare the DSN?
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
I have a jcl which is using 2 data sets i want to override those data sets. how can i override the files within the JCL. Give me the syntax. Make sure that it is not calling any Proc.
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
can we copy a file from fixed block to variable block and vice versa ....asap
how to compare two datasets without using superce because output is limited to 133 bytes
What is the difference between Sysin,Sysout,Sysdbout and Sysudump?
how to resolve the soc4 error?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?