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

Space requirement question


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

New User


Joined: 27 Jan 2006
Posts: 22

PostPosted: Tue Sep 15, 2009 9:53 pm
Reply with quote

Hi

I had a space issue with one of my new dataset creation. I have corrected it by allocating more space. Below is my jcl

UNIT=SYSDA,MGMTCLAS=MB000804,
SPACE=(10796,(7500,10),RLSE),
VOL=(,,,20),
DCB=(SYS3.DSCB,DSORG=PS,
RECFM=FB,LRECL=611,BLKSIZE=0)

The total of records is 400000. as i already know the calculation, i have calculated using 27998/611=46 rec/block. no.of.rec/46 = 8696 blocks. so i have allocated more SPACE=(10796,(10000,100),RLSE) for a safer side and resolved the issue. But my question is what is the role block length (10796) playing here? whether i need to bother abt 10796?
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: Tue Sep 15, 2009 10:25 pm
Reply with quote

Hello,

When you allocate space, you need to specify how space will be allocated (often trk or cyl). You have used blksize.
Back to top
View user's profile Send private message
fahir83

New User


Joined: 27 Jan 2006
Posts: 22

PostPosted: Tue Sep 15, 2009 10:34 pm
Reply with quote

Thats True Dick. But my question is whether 10796 will be having any effect on space calculation? whether i need to consider that as an parameter while calculating space? As i mentioned BLKSIZE = 0, it will take the optimum block size, But just want to clarify and to be clear.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Tue Sep 15, 2009 10:42 pm
Reply with quote

Quote:
27998/611=46 rec/block. no.of.rec/46 = 8696 blocks
Your calculation is based on half-track blocking (27998 bytes maximum per block). Your selected block size gives 17 records per block. 400,000 records divided by 17 gives 23,530 blocks required -- not the mere 10,000 you allocated.

Also, 10796 is not evenly divided by 611. You should be using 10387 instead (or 10998?) to be evenly divisible.

I suspect this is an SMS-managed data set and the BLKSIZE=0 is overriding your specified block size. If this data set were going to a non-SMS volume, you would be getting an abend stating that block size is not a multiple of LRECL.

In order to prevent future confusion, change the 10796 to TRK or CYL and adjust the allocation number appropriately.
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Question for file manager IBM Tools 7
No new posts question for Pedro TSO/ISPF 2
No new posts Merge 2 lines based on Space from a S... DFSORT/ICETOOL 5
No new posts question on Outrec and sort #Digvijay DFSORT/ICETOOL 20
Search our Forums:

Back to Top