Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Temporary Files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Temporary Files
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    Post subject:
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    Post subject: Shiva
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    Post subject: hi Ravi gaur
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    Post subject: Vijayamadhuri
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    Post subject: HI Ravi gaur
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    Post subject:
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    Post subject: Vijay,elonics
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us