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

JCL : Temporary Dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Sep 07, 2010 1:43 pm
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
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: 262

PostPosted: Tue Sep 07, 2010 6:11 pm
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
Reply with quote

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

Superior Member


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

PostPosted: Wed Sep 15, 2010 4:12 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top