Page 1 of 1

Usage of temporary dataset

PostPosted: Wed Aug 26, 2009 8:21 am
by Pebble
Hi,

Please tell me how I can use a temporary dataset in the same JCL, when dataset is just specified as DSN=&&TEMP ?
Can I use "&&TEMP" for accesing that temporary dataset?

Pebble.

Re: Usage of temporary dataset

PostPosted: Wed Aug 26, 2009 8:23 am
by dick scherrer
Hello,

Yes, the same temporary name is used to read the dataset as to create it. It will automatically be deleted.

Re: Usage of temporary dataset

PostPosted: Tue Sep 22, 2009 6:16 pm
by Anuj Dhawan
Temp datasets are denoted with &&dsn . Keep your dataset name to 7 char, no reason, just easier to keep track of them.

Temp datasets are used when you know that the file will not be used outside the job, saves cateloging and deleting.