Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
JCL : Temporary Dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
raghav08
Currently Banned

New User


Joined: 03 Jun 2008
Posts: 94
Location: Bangalore

PostPosted: Tue Sep 07, 2010 1:31 pm    Post subject: JCL : Temporary Dataset
Reply with quote

Hello.

What's the difference between below two JCL statements for PASS disposition.

//DD01 DD DSN=&&TEMP,DISP=(NEW,PASS)

AND

//DD01 DD DSN=DEV01.TEST.FILE,DISP=(NEW,PASS)

1) First statement will create SYSJuliandate.XXX dataset & it deleted at the end of job

2) Second statement also creates dataset DEV01.TEST.FILE & it also deleted at the end of job

Then what's advantage of statement-1 over statement-2.

Thanks.
Back to top
View user's profile Send private message

PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2442
Location: Netherlands, Amstelveen

PostPosted: Tue Sep 07, 2010 1:43 pm    Post subject:
Reply with quote

&&TEMP generates a unique datasetname.
In the second case, if the system decides to choose a volume containing
the named dataset, you will get duplicate dataset name errors.
Or if the named dataset is catalogued.
Back to top
View user's profile Send private message
raghav08
Currently Banned

New User


Joined: 03 Jun 2008
Posts: 94
Location: Bangalore

PostPosted: Tue Sep 07, 2010 1:51 pm    Post subject:
Reply with quote

Thanks for your information.
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 259

PostPosted: Tue Sep 07, 2010 6:11 pm    Post subject:
Reply with quote

If we are going to be extremely petty
Quote:
&&TEMP generates a unique datasetname.
This is only true as of z/OS 1.12
Back to top
View user's profile Send private message
santy
Warnings : 1

New User


Joined: 19 Jul 2007
Posts: 22
Location: mumbai

PostPosted: Wed Sep 15, 2010 1:16 pm    Post subject: Reply to: JCL : Temporary Dataset
Reply with quote

is there any other difference between them??
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Sep 15, 2010 4:12 pm    Post subject: Re: Reply to: JCL : Temporary Dataset
Reply with quote

santy wrote:
is there any other difference between them??
pardon my ignorance but difference between what?
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us