View previous topic :: View next topic
|
Author |
Message |
viji_rags
New User
Joined: 04 Jun 2010 Posts: 24 Location: chennai
|
|
|
|
When I have to copy the input dataset to output dataset it abends due to space issue(B37). How can I calculate the exact number of cylinders to be allocated for the output dataset.
Viji. |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Terminology is critical in IT, where similar terms may mean very different things. Your post title asks how to calculate the MEMORY allocation of data sets. The answer is simple -- ZERO. Memory is used by the CPU to store programs and data used by the programs. Memory is not used -- EVER -- to store data sets. Memory is volatile and disappears the second the machine is reset or power lost. Memory is never measured in cylinders -- only in bytes. The only use of memory for data sets is the allocation of buffers to transfer data from memory to a disk volume or from a disk volume to memory, and again buffers are not measured in cylinders but in bytes.
Cylinders are used with disk volumes, which are -- very definitely -- NOT memory. If you search this forum for space allocation (all terms), you can find a number of posts that give formulas to calculate the amount of disk space required for a given LRECL, BLKSIZE and number of records. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
How can I calculate the exact number of cylinders to be allocated for the output dataset. |
Suggest you do NOT do this - unless the number of records can never change.
It is far more effective to calculate how much space is normally needed, allocate that as the primary allocation and then provide secondary space for when it is needed.
The best way for a process like this is that it never be seen again due to a space abend. . . . |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
WaysToFail ON
Always allocate the maximum, if the data fits you are lucky. If you overallocated then people like expat are going to kick your ...
WaysToFail OFF |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
Try the LIKE or the REFDD parameter.
the space allocation (among other values that may be useful to you too) will be copied from the referenced dsname or ddname. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Peter, such actions are usually forgiven if the user remembers the RLSE parameter, and I of course have not forgotten to code the ACS for automatic space release |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Somebody did an edit on my comment.
Well expat, i never used the RLSE parameter. But then the storage guys
and me are/were drinking buddies. |
|
Back to top |
|
|
|