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
Answer Posted / 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 |
Post New Answer View All Answers
How is a type of file defined in the jcl that executes the cobol program?
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
what is “Cond= even” and “Cond=only”?
How to pass the parameter in parm using linkage section ? (syntax)?
How do you create a temporary dataset?
Is condition checking possible in jcl?
Explain about ISPF/TSO Commands
What are some jcl statements that are not allowed in procedures?
which parameter is use to declare the name of dataset in dd statement?
how to do automated restart when a job abends?
WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375
when does a dataset go uncataloged?
what is use of space parameter in dd statement?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
Brief description of inline procedure of jcl.