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
can any one plzzzzzz tell the jcl code for creating ps using idcams
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?
What is the significance of addrspc parameter in exec statement?
Suppose I have five jobs to do. But I want to hold one?
What is one line to pass PARM from JCL to COBOL?
what is the purpose of coding notify parameter in job statement?
Explain how can values be passed from the job stream to an executable program?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?
Can we call instream to catalog and catalog to instream?
Can an individual step be restricted from using all the jobs allowed cpu time?
Explain how can an in-stream dataset be terminated?
What is the function of job statement in jcl?
hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u