Page 1 of 1

Dynamic space allocation for output datasets

PostPosted: Tue Nov 27, 2007 12:44 am
by Diver Dave
Any suggestions on how to dynamically create the space parameter for a given dataset? Specifically, I want to dynamically create the primary and seconday space allocations in a statement like:
SPACE=(CYL,(10,10),RLSE)

instead of having to actually code a specific value as is done here. (CYL,(10,10),RLSE)

Re: Dynamic space allocation for output datasets

PostPosted: Tue Nov 27, 2007 1:08 am
by dick scherrer
Hello Dave and welcome to the forums,

What part of the allocation do you want to be dynamic? Not sure i understand the question. . .

You can generate jcl and submit it via the internal reader, but i suspect that is not what you are looking for.

Let's say file1 will have 1000 records written to it. Let's say file2 will have 10million records written to it. Do you want the system automagically allocate the "right" volume for both files?

Re: Dynamic space allocation for output datasets

PostPosted: Tue Nov 27, 2007 1:23 am
by MrSpock
Isn't this why SMS (System Managed Storage) is usually used?

Re: Dynamic space allocation for output datasets

PostPosted: Tue Nov 27, 2007 2:56 am
by dick scherrer
Hello,

If you are interested in SMS, i'd suggest you spend some time with the storage management people.

You can define different DATACLASs, but you still have to define them. Most organizations do not let people outside of the storage management group to define SMS entries.

If only some of your system's dasd is sms-managed (which is quite common), you still need to specify space.

Re: Dynamic space allocation for output datasets

PostPosted: Tue Nov 27, 2007 4:33 am
by Lina
Hi,

You can give a SPACE parm like SPACE=(&A,(&B,&C),RLSE)

Define A,B,C values in the JCLstep where you are calling this proc.

Thanks,
Lina

Re: Dynamic space allocation for output datasets

PostPosted: Tue Nov 27, 2007 6:34 pm
by Diver Dave
Thank you all! I will investigate our SMS environment further. Also, I will look into the use of symbolics as suggested by Lina. Thanks for all the input.