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 Dataset in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Temporary Dataset in JCL
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    Post subject:
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..
http://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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Mon Sep 14, 2009 3:54 pm    Post subject: Reply to: Temporary Dataset in JCL
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    Post subject:
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
http://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: 8002
Location: Bellevue, IA

PostPosted: Mon Sep 14, 2009 4:58 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions 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 catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm


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