Usage of temporary dataset

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Usage of temporary dataset

Postby Pebble » Wed Aug 26, 2009 8:21 am


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?

User avatar
Posts: 8
Joined: Wed Aug 26, 2009 7:55 am
Has thanked: 0 time
Been thanked: 0 time

Re: Usage of temporary dataset

Postby dick scherrer » Wed Aug 26, 2009 8:23 am


Yes, the same temporary name is used to read the dataset as to create it. It will automatically be deleted.
Hope this helps,
User avatar
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Usage of temporary dataset

Postby Anuj Dhawan » Tue Sep 22, 2009 6:16 pm

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.
Anuj Dhawan
Posts: 273
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times

Return to JCL


  • Related topics
    Last post