IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Temporary Files


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ravi gaur

New User


Joined: 12 Jul 2005
Posts: 38

PostPosted: Thu Aug 18, 2005 9:57 am
Reply with quote

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
View user's profile Send private message
shivashunmugam Muthu

Active User


Joined: 22 Jul 2005
Posts: 114
Location: Chennai

PostPosted: Thu Aug 18, 2005 12:01 pm
Reply with quote

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
View user's profile Send private message
Ravi gaur

New User


Joined: 12 Jul 2005
Posts: 38

PostPosted: Fri Aug 19, 2005 7:18 am
Reply with quote

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
View user's profile Send private message
vijayamadhuri

Active User


Joined: 06 Apr 2005
Posts: 180

PostPosted: Tue Aug 23, 2005 1:15 am
Reply with quote

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
View user's profile Send private message
Ravi gaur

New User


Joined: 12 Jul 2005
Posts: 38

PostPosted: Tue Aug 23, 2005 10:16 am
Reply with quote

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
View user's profile Send private message
vijayamadhuri

Active User


Joined: 06 Apr 2005
Posts: 180

PostPosted: Tue Aug 23, 2005 10:23 am
Reply with quote

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
View user's profile Send private message
elonics

New User


Joined: 05 Jul 2005
Posts: 49
Location: India

PostPosted: Tue Aug 23, 2005 11:50 am
Reply with quote

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
View user's profile Send private message
Ravi gaur

New User


Joined: 12 Jul 2005
Posts: 38

PostPosted: Tue Aug 23, 2005 12:56 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
Search our Forums:

Back to Top