Interview Questions   Tutorials   Discussions   Programs   

JCL - How do you create a temporary dataset? Where will you use them?




354
views
asked mar September 1, 2014 11:20 AM  

How do you create a temporary dataset? Where will you use them?


           

1 Answers



 
answered By Mswami   0  
Temporary datasets need storage only for the job duration and are deleted at job completion. Such datasets are represented as DSN=&name or simply without a DSN specified.

Temporary data set is created during job and deleted at the end of the job. 

Temporary data set can be coded by using two ampersands followed by name.

Example:   

//MYJOB  JOB  (E456),'RAMESH'
//STEP1  EXEC PGM=COBPROG
//INFILE DD  DSN=&&TEMP     

Here TEMP is an temporary dataset will be deleted upon job completion.
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert