MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help needed for space allocation

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
nbdtrjk_1
Beginner


Joined: 14 Jun 2021
Posts: 19
Topics: 7

PostPosted: Wed Oct 29, 2025 9:20 am    Post subject: Help needed for space allocation Reply with quote

All,

I have checked numerous existing threads that explained about space calculation methods based on BLKSize, Lrecl, avgrec, and the Prim and Sec spaces. However, those calculations have not provided much assistance in my current allocation, where I am struggling to interpret the JCL space parameters vs Actuals.

JCLs:
Code:

//DSN=ABC,
//             RECFM=FB,                           
//             LRECL=840,                         
//             SPACE=(840,(6000,600),RLSE),       
//             AVGREC=K,                           
//             DISP=(,CATLG,DELETE),               
//             UNIT=(SYSDA,10)     


Actuals:
Code:

Data Set Name  . . . : ABC               
General Data                          Current Allocation               
 Management class . . : XXXXXXXX       Allocated kilobytes : 4,711,572
 Storage class  . . . : XXXXXXXX       Allocated extents . : 4         
  Volume serial . . . : XXXXXXXX                                       
  Device type . . . . : 3390                                           
 Data class . . . . . :                                         
  Organization  . . . : PS            Current Utilization             
  Record format . . . : FB             Used kilobytes  . . : 4,711,572
  Record length . . . : 840            Used extents  . . . : 4         
  Block size  . . . . : 32760                                         
  1st extent kilobytes: 1216094                                         
  Secondary kilobytes : 504064       
  Data set name type  : EXTENDED     
  Data set encryption : NO           
 
 
  From 3.4 Option with Space attribute 
  Command - Enter "/" to select action            Tracks %Used   XT 
  -----------------------------------------------------------------
        ABC                                        85193  100     4


volume of file is 93 million records

Questions:


1. How was this KB calculated in the actuals?

1st extent kilobytes: 1216094
Secondary kilobytes: 504064

Allocated kilobytes : 4,711,572
Used kilobytes . . : 4,711,572

2. As per 3.4 option, it is showing 85193 tracks already utilized it(100 %used). which means, can't we add more volume to this file?

My calculation is
6000*15 = 9000 Tracks. so 90000-85193 = 4807 tracks still available to accommodate the additional volumes. Is it correct?

Thanks
Back to top
View user's profile Send private message
nbdtrjk_1
Beginner


Joined: 14 Jun 2021
Posts: 19
Topics: 7

PostPosted: Sun Nov 02, 2025 7:43 pm    Post subject: Reply with quote

Any input would be appreciated which sheds light on my further analysis
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12397
Topics: 75
Location: San Jose

PostPosted: Mon Nov 03, 2025 2:58 pm    Post subject: Reply with quote

nbdtrjk_1 wrote:
All,

I have checked numerous existing threads that explained about space calculation methods based on BLKSize, Lrecl, avgrec, and the Prim and Sec spaces. However, those calculations have not provided much assistance in my current allocation, where I am struggling to interpret the JCL space parameters vs Actuals.

My calculation is
6000*15 = 9000 Tracks. so 90000-85193 = 4807 tracks still available to accommodate the additional volumes. Is it correct?

Thanks




nbdtrjk_1,

Well Looks like you haven't read the documentation correctly. When you specify AVGREC=K, then K indicates that PRImary and the SECondary parameters specify the number of records in thousands (so it would be the number specified multiplied by 1024). In your case , you specified a primary value of 6000 which means that the space allocation would be done for 6000 K records = 6,144,000

Read upon the documentation of AVGREC here

https://www.ibm.com/docs/en/zos/3.2.0?topic=statement-avgrec-parameter


Ideally an LRECL=840 on 3390 device , the Optimal Blksize is 27,720, however your dataset is allocated with a BLOCKSIZE of 32760.

Read upon the space calculation here based on the LRECL/BLKSIZE and number of records

https://www.mvsforums.com/helpboards/viewtopic.php?p=36#36

Looks like you did not show all of the information. Since the dataset is created with BLKSIZE of 32K, I am assuming it is a compressed dataset. A listcat of the dataset would show you that information.

nbdtrjk_1 wrote:

volume of file is 93 million records



A 3390-n device has 56,664 bytes out of which 32 bytes are reserved. So in your case (56664-32)/840 = 67

For an uncompressed dataset of 93 million records, it would take 93M/67 = 1,388,060 tracks

Check if STORCLAS that the dataset is allocated guaranteed space.

Ideally you would do this.

1. Run an IEFBR14 step and allocate the dataset.
2. Do a 3.4 listing or LISTCAT on the dataset and then you will see the real allocation values.
3. Write 93M records of data to the dataset
4. Do another 3.4 listing or LISTCAT and then see the allocation values.

nbdtrjk_1 wrote:

Any input would be appreciated which sheds light on my further analysis


People respond here voluntarily , respond when they have time and are NOT paid, So please stop bumping the thread looking for responses.

Thanks,
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nbdtrjk_1
Beginner


Joined: 14 Jun 2021
Posts: 19
Topics: 7

PostPosted: Mon Nov 03, 2025 8:21 pm    Post subject: Reply with quote

Agree its defined as compressed file.
Will check on the IEFBR14 allocation.

Thanks Koulsu for the valuable inputs.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group