TEMP file allocation in REXX.

Time Sharing Option, Interactive System Productivity Facility and REstructured eXtended eXecutor

Moderator: mickeydusaor

Post Reply
Kapil Sharma
Registered Member
Posts: 52
Joined: Sun Sep 29, 2013 1:46 am
Location: India

TEMP file allocation in REXX.

Post 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.
Last edited by Kapil Sharma on Wed Sep 16, 2015 7:47 pm, edited 1 time in total.
Thanks,
Kapil
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: TEMP file allocation in REXX.

Post 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.
Regards
Nic
User avatar
prino
Registered Member
Posts: 68
Joined: Sun Jun 01, 2014 4:15 am
Location: Vilnius, Lithuania
Contact:

Re: TEMP file allocation in REXX.

Post 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.
Robert AH Prins
robertahprins @ the.17+Gb.Google thingy
Some z/OS code here
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “TSO, ISPF & REXX (Do you still do CLIST?!).”