View previous topic :: View next topic
|
Author |
Message |
Ravi gaur
New User
Joined: 12 Jul 2005 Posts: 38
|
|
|
|
I do want to pass temporary dataset to second step without using disp=pass parameter.... as this is requirement ....
Requirement is :- Sysout data need to put to two places one in the dataset and another to the Jes output... so the option which i found is
//sysout dd dsn=&&temp,sysout=*
this way sysout will go to temporary dataset as well as to sysout class ... however we cann't use disp parameter here becoz of exclusive use ,, how can i use the temp dataset in the next step...??????????/
can i get ans asap |
|
Back to top |
|
|
shivashunmugam Muthu
Active User
Joined: 22 Jul 2005 Posts: 114 Location: Chennai
|
|
|
|
hav u used &&temp in ur subsequent step directly.. any error its throwing....
In my opinion, though u hvnt coded the disp, in sysout if u code &&xxx, its the last qualifier of the system generated dataset.
its like userid.jobname.jobid.Ddsnumber.xxx
kindly check & revert. |
|
Back to top |
|
|
Ravi gaur
New User
Joined: 12 Jul 2005 Posts: 38
|
|
|
|
Shiva what will happen exactly This temporary dataset which ur saying (userid.jobname.jobid.Ddsnumber.xxx ) --which one is right would be created and deleted with in the step itself and if you will try to use the temp dataset in the next step it will say DATASET NOT FOUND .....
as to pass the temp dataset to next step we must need to code disp... |
|
Back to top |
|
|
vijayamadhuri
Active User
Joined: 06 Apr 2005 Posts: 180
|
|
|
|
u can do that using the referback concept.In this case we do not have to mention the disp parameter
the referback statement can be used as folows
assume u have to use the temp dataset created in the first step in the second
in that case we use..
//step1 exec pgm=pgm1
//data dd.....
//step2 exec pgm=pgm2
//data2 dd *.step1.data1
In this way u will be accessing the temp dataset cteated in step1 |
|
Back to top |
|
|
Ravi gaur
New User
Joined: 12 Jul 2005 Posts: 38
|
|
|
|
for your information you even can't reference back temp dataset as it get deleted as the first step end....................
Anyway thankyou... as i m planning to use IEBGENER
to get my desire output... |
|
Back to top |
|
|
vijayamadhuri
Active User
Joined: 06 Apr 2005 Posts: 180
|
|
|
|
temporary datasets dont get deleted after the execution of a step they are retained untill the end of the job.
If they get deleted why do u think they should be used and what purpose does it serve if a data set is just created for 1 step and that info cant be used anywhere.
please refer MVS JCL PRIMER- BY RANADE FOR THE CONCEPT. |
|
Back to top |
|
|
elonics
New User
Joined: 05 Jul 2005 Posts: 49 Location: India
|
|
|
|
Hi ravi,
Temporay datasets wont get deleted until the end of ur job and even if u dont code Disposition parameter for Temp dataset , MVS will internally take that as DISP=(NEW,PASS).
Thanx.
Elonics. |
|
Back to top |
|
|
Ravi gaur
New User
Joined: 12 Jul 2005 Posts: 38
|
|
|
|
That's what i am saying,,
If you won't use DISP=NEW,PASS you can't use it in the next step...
let i give an example :-
/STEP1 EXEC PGM=CREATE
//DD4 DD DSNAME=&&ISDATA(PRIME),DISP=(,PASS),UNIT=(3350,2),
// VOLUME=SER=334859,SPACE=(CYL,(10,,2),,CONTIG),DCB=DSORG=IS
//STEP2 EXEC PGM=OPER
//DD5 DD DSNAME=*.STEP1.DD4,DISP=(OLD,DELETE)
here in the step1 we r creating one temp dataset which we are passing so with in the same job we can use it in any step using back reference.... however VIJAYA if you will not give disp=,pass U can't use it in the further step........ I HOPE IT IS CLEAR TO U BOTH...
Let me clear if i am wrong.. |
|
Back to top |
|
|
|