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)
Dynamic space allocation for output datasets
-
- Posts: 2
- Joined: Tue Nov 27, 2007 12:26 am
- Skillset: 20+ years: COBOL, JCL, DB2, IBM mainframe production support. SQL, VSAM, TSO, QMF, Endevor, Microsoft Office, CICS
5+ years: technical and project management
<5 years: Java - Sun Certified Programmer, Javascript, SMTP, Visual Age for Java, IBM WebSphere AS, IBM WebSphere Studio, JDBC, FrontPage 2000, Oracle, COGEN, PALM, GEAC Millennium - Referer: from IBMMAINFRAMES forum email
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: Dynamic space allocation for output datasets
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?
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?
Hope this helps,
d.sch.
d.sch.
- MrSpock
- Global moderator
- Posts: 809
- Joined: Wed Jun 06, 2007 9:37 pm
- Skillset: REXX, JCL, DFSORT, Syncsort, Axway MFT, Connect:Direct, FTP, SFTP
- Referer: ibmmainframes.com
- Location: Raleigh NC USA
- Contact:
Re: Dynamic space allocation for output datasets
Isn't this why SMS (System Managed Storage) is usually used?
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: Dynamic space allocation for output datasets
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.
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.
Hope this helps,
d.sch.
d.sch.
Re: Dynamic space allocation for output datasets
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
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
-
- Posts: 2
- Joined: Tue Nov 27, 2007 12:26 am
- Skillset: 20+ years: COBOL, JCL, DB2, IBM mainframe production support. SQL, VSAM, TSO, QMF, Endevor, Microsoft Office, CICS
5+ years: technical and project management
<5 years: Java - Sun Certified Programmer, Javascript, SMTP, Visual Age for Java, IBM WebSphere AS, IBM WebSphere Studio, JDBC, FrontPage 2000, Oracle, COGEN, PALM, GEAC Millennium - Referer: from IBMMAINFRAMES forum email
Re: Dynamic space allocation for output datasets
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.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 10
- 3986
-
by Heisenberg
View the latest post
Fri Jun 23, 2023 4:00 pm
-
- 4
- 3021
-
by Robert Sample
View the latest post
Wed Jun 07, 2023 7:53 pm
-
- 5
- 1792
-
by willy jensen
View the latest post
Fri Dec 03, 2021 8:16 pm
-
- 23
- 8168
-
by Devrana
View the latest post
Wed Jul 27, 2022 5:30 pm
-
- 3
- 2787
-
by willy jensen
View the latest post
Tue Jun 29, 2021 1:36 pm