IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to calculate the memory allocation of datasets


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
viji_rags

New User


Joined: 04 Jun 2010
Posts: 24
Location: chennai

PostPosted: Fri Jul 01, 2011 11:30 am
Reply with quote

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
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Fri Jul 01, 2011 11:36 am
Reply with quote

This might be helpful
www.ibmmainframes.com/viewtopic.php?t=53305&highlight=
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Jul 01, 2011 3:17 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jul 01, 2011 8:45 pm
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Jul 01, 2011 11:09 pm
Reply with quote

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
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Sat Jul 02, 2011 11:35 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Jul 02, 2011 12:13 pm
Reply with quote

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 icon_lol.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Sat Jul 02, 2011 2:02 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
No new posts how to calculate SUM for VB file usin... JCL & VSAM 1
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
No new posts PL/I, VB Datasets and the RDW PL/I & Assembler 4
Search our Forums:

Back to Top