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

Temporary Dataset in JCL


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Rajesh S
Warnings : 1

New User


Joined: 11 Jul 2007
Posts: 54
Location: Chennai

PostPosted: Mon Sep 14, 2009 12:49 pm
Reply with quote

HI,

Can we create a temporary datasets with the same name in two different DD statements in a single JCL?

I answered, No. We can passed the Temporary dataset to some other DD statement, otherwise we can create the Temporary dataset in two different names.

Please correct me, If im wrong

Thanks in Advance

Rajesh S
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Sep 14, 2009 1:24 pm
Reply with quote

Are you and Prabhu are doing same classes and it is some homework given to u?

I feel so from this and below topic..
www.ibmmainframes.com/viewtopic.php?t=43813

Same answer Please try and let us know on any issue you faced...
Back to top
View user's profile Send private message
Rajesh S
Warnings : 1

New User


Joined: 11 Jul 2007
Posts: 54
Location: Chennai

PostPosted: Mon Sep 14, 2009 3:52 pm
Reply with quote

Hi Sambhaji,

REFERBACK is used to refer the disp, space, unit, vol, DCB parameters only.
I think we cannot able to REFERBACK the DSName.


Correct me if im wrong

Thanks
Rajesh S
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Sep 14, 2009 3:54 pm
Reply with quote

at the top of the page there is a link to the IBM manuals...
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Sep 14, 2009 4:53 pm
Reply with quote

Rajesh S wrote:
I think we cannot able to REFERBACK the DSName.
Correct me if im wrong

No You are Wrong.

Refer below link
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/iea1b640/4.4?ACTION=MATCHES&REQUEST=Backward+References&TYPE=FUZZY&SHELF=&DT=20000718114500&CASE=&searchTopic=TOPIC&searchText=TEXT&searchIndex=INDEX&rank=RANK&ScrollTOP=FIRSTHIT#FIRSTHIT
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Mon Sep 14, 2009 4:58 pm
Reply with quote

Quote:
Can we create a temporary datasets with the same name in two different DD statements in a single JCL?
Of course -- step1 of the job creates &&T1, step2 uses and deletes it, step 3 creates &&T1 again. All in one job (JCL).
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Sep 15, 2009 6:27 am
Reply with quote

Reading the manual it looks like you can, provided they are not created in the same second of time, since hhmmss is part of the assigned DSN.

Only user unnamed temp datasets are assured to be uniquely named because of a unique 5 digit number appended to the system assigned name.
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 -> Mainframe Interview Questions

 


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