Page 1 of 1

TEMP file allocation in REXX.

Posted: Wed Sep 16, 2015 7:39 pm
by Kapil Sharma
Hello,

I'm trying to allocate a TEMP file in REXX. Can you please suggest, would it be possible to have a TSO command to do same thing as we do this in JCL below

Code: Select all

//TEMP1 DD DSN=&&TEMP1,DISP=(,PASS), 
//        SPACE=(CYL,(10,5)),UNIT=SYSDA 
I tried with:

Code: Select all

ALLOC F(TEMP1) SPACE(10,5) CYL da(??????) SHR REUSE 
Can anyone suggest.

Re: TEMP file allocation in REXX.

Posted: Wed Sep 16, 2015 7:45 pm
by nicc
Supply a dataset name. A dataset is only in existence for as long as you let it exist so delete it when finished. &&TEMP only says to the system to allocate a dataset with a name of the SYSTEM'S choosing - it still gets a proper dataset name.

Re: TEMP file allocation in REXX.

Posted: Wed Sep 16, 2015 9:59 pm
by prino
nicc wrote:Supply a dataset name. A dataset is only in existence for as long as you let it exist so delete it when finished. &&TEMP only says to the system to allocate a dataset with a name of the SYSTEM'S choosing - it still gets a proper dataset name.
Don't supply a dataset name.