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 does the jcl specify the job to os?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
How to Enter The Spool Area In Real Time?
what is the function of iebcompr?....is it compare record length or characteristics of a dataset?...pls explain with examples.......
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
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?
whats the diff bw the evaluate also and and?
What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?
Are there any set of rules for the names of the steps used in a job? What are they?
Explain about Cobol Subroutines
What is the differentiation between TRK,cyl, and Bytes... how they can be connected??