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 |
why jobstep can't be more than 255 and for GDG has max limit 255 . Is there any relation between the two
what is JCLLIB and PROCLIB in jcl and their syntax
How many JOB statements a JCL can have ? If there are more than one JOB statements in a JCL, are they submitted in succession or in parallel ?
in step1 of a jcl,disp=(mod,delete,delete) step02 exec pgm=ccc,cond=(0,le) will step02 be executed? i)never ii)always iii) iv)... i dont remember options
what is the restart?hopw it is invoked?
What are the parameter in the job card wihtout which job won't run........
How to read records in reverse order in flat file?
Suppose I have a file with three fields with data in the following format 1. empid - S9(4) COMP 2. empname - X(20) 3. empsal - S9(5)V(2) COMP-3 If I view this file, it will not be in a readable format. How to display the empid and empsal fields in a readable format without using COBOL program? What kind of SORT card will have to be coded?
what is instream data
I have two input SORTIN files and We need to create one SORTOUT file which contains data of both input files. What is the SortCard for this?. Suppose the length of the both files are different, then How we do it? Please reply ASAP
delete rules in db2
How can you trap abends in the JCL?