GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe
Go To First  |  Previous Question  |  Next Question 
 Mainframe  |  Question 45 of 55    Print  
On a IBM mainframe running the z/OS operating system, how do you create a temporary dataset and why would you use one?

  
Total Answers and Comments: 4 Last Update: December 12, 2008     Asked by: katzzz63 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Sushil Nayak
 
I hope the question is for JCL. Nyhow in JCL you just have to write DSN=&&TEMP instead of DSN=XXXX.X.XXXX.XXX. to create a temporary dataset. To use this temporary dataset just use &TEMP wherever you want the use the temporary data. I hope this answers a part of your question.

As far as usage part is concerned. I believe the temporary datasets are generally used to save space allocation and deallocation time. I mean just take a case where a Procedure generates an ouput now you jus need to send the output via some Mailing Procedure you have, right. So just mail that temp. dataset using &TEMP. At the end of the execution the temporary dataset get removed but if i would have used a permanent dataset then i had to use IEFBR14 to delete the file at the end of JCL so as to deallocate the dataset.

Hope you've got wht i'm trying to say

Above answer was rated as good by the following members:
i_virus
November 15, 2007 08:48:31   #1  
Sushil Nayak        

RE: On a IBM mainframe running the z/OS operating syst...
I hope the question is for JCL. Nyhow in JCL you just have to write DSN &&TEMP instead of DSN XXXX.X.XXXX.XXX. to create a temporary dataset. To use this temporary dataset just use &TEMP wherever you want the use the temporary data. I hope this answers a part of your question.

As far as usage part is concerned. I believe the temporary datasets are generally used to save space allocation and deallocation time. I mean just take a case where a Procedure generates an ouput now you jus need to send the output via some Mailing Procedure you have right. So just mail that temp. dataset using &TEMP. At the end of the execution the temporary dataset get removed but if i would have used a permanent dataset then i had to use IEFBR14 to delete the file at the end of JCL so as to deallocate the dataset.

Hope you've got wht i'm trying to say

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
August 20, 2008 01:59:27   #2  
kashi2005 Member Since: March 2006   Contribution: 3    

RE: On a IBM mainframe running the z/OS operating system, how do you create a temporary dataset and why would you use one?
&&temp
or
if we remove dsn name u can create tempary data sets

 
Is this answer useful? Yes | No
October 10, 2008 02:35:15   #3  
prab99 Member Since: October 2008   Contribution: 2    

RE: On a IBM mainframe running the z/OS operating system, how do you create a temporary dataset and why would you use one?
Just to elaborate on what others have said - Small temporary datasets can be directed to VIOs (Virtual I/O using memory) to elminate most of the delays associated with DASDs.
 
Is this answer useful? Yes | No
December 12, 2008 06:10:44   #4  
maya007 Member Since: April 2008   Contribution: 6    

RE: On a IBM mainframe running the z/OS operating system, how do you create a temporary dataset and why would you use one?
The temporary datasets are created by using the option >

//DD1 DD DSN &&TEMP DISP (NEW PASS DELETE).

The PASS is used instead of CATLG because we need the dataset only for the temporary purpose. The CATLG makes the dataset to get cataloged & creates a vol serial number. The TEMP dataset output can be sent to PDS dataset.

Cheers

Vishwanath.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape