Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Calculating dataset size

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
SSR
Warnings : 1

New User


Joined: 26 Feb 2006
Posts: 38

PostPosted: Thu Jul 06, 2006 10:23 am    Post subject: Calculating dataset size
Reply with quote

hi,

Could anyone please let me know how to calculate the number of records a dataset can occupy based on the Primary and secondary volume and the LRECL, is there any formlae for calculating that.

And also kowing the number of records a dataset needs to hold how to allocate the primary and scondary volumes and the number of extents.

Thanks n Regards
SSR
Back to top
View user's profile Send private message

kondakonda

New User


Joined: 20 Mar 2006
Posts: 34

PostPosted: Thu Jul 06, 2006 1:52 pm    Post subject: Re: Calculating dataset size
Reply with quote

Hi,

1 CYL = 15 TRKS
1 TRK = 56, 664 BYTES
if you define the LRECL as 56664, then one record is stored in each track.

If we define SPACE=(TRK,(3,2)), the primary allocation is 3 tracks and the secondary extents is 2 * 3 = 6 tracks.
Back to top
View user's profile Send private message
SSR
Warnings : 1

New User


Joined: 26 Feb 2006
Posts: 38

PostPosted: Thu Jul 06, 2006 4:44 pm    Post subject: Re: Calculating dataset size
Reply with quote

hi,


In the above example, what will be the number of records it can hold if the LRECL is 80 bytes.

Thanks n Regards
SSR
Back to top
View user's profile Send private message
kondakonda

New User


Joined: 20 Mar 2006
Posts: 34

PostPosted: Thu Jul 06, 2006 4:56 pm    Post subject: Re: Calculating dataset size
Reply with quote

Hi,

In the example the data can be stored in a total of 9 tracks
for each track if the record length is 80 bytes then 708 records can be stored.
so for 9 tracks totally 6372 records can be stored.

Thanks.
Back to top
View user's profile Send private message
SSR
Warnings : 1

New User


Joined: 26 Feb 2006
Posts: 38

PostPosted: Thu Jul 06, 2006 5:18 pm    Post subject:
Reply with quote

hi,

Thank you for your information will try it out.
Back to top
View user's profile Send private message
SSR
Warnings : 1

New User


Joined: 26 Feb 2006
Posts: 38

PostPosted: Thu Jul 06, 2006 5:30 pm    Post subject:
Reply with quote

hi,

What is the Use of AVGREC parameter, what will happen if we code the AVGREC parameter ('U', 'K', 'M') along with this.

Sorry if am disturbing you..

Thanks n Regards
SSR
Back to top
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Thu Jul 06, 2006 6:22 pm    Post subject: Re: Calculating dataset size
Reply with quote

AVGREC is a parameter on the DD statement that allows you to basically allocate your space in records, rather than CYLs or tracks.

AVGREC can be U, K or M
U is for records requested in groups of one
K is for records request in groups of 1024
M is for records requested in groups of 1048576

Let's say you have 1,048,576 records that are 228 bytes long and you want to define the space using AVGREC

Here are the three ways:

This is for AVGREC=U in units of one
Code:

DD SPACE=(228,(1048576,100),RLSE),AVGREC=U


This is for AVGREC=K in units of 1024
Code:

DD SPACE=(228,(1024,10),RLSE),AVGREC=K


This is for AVGREC=M in units of 1048576
Code:

DD SPACE=(228,(1,1),RLSE),AVGREC=M


Allocating using AVGREC is just a different means of allocating space for a sequential file if you know how many records you are dealing with.
Back to top
View user's profile Send private message
kondakonda

New User


Joined: 20 Mar 2006
Posts: 34

PostPosted: Fri Jul 07, 2006 3:14 pm    Post subject: Re: Calculating dataset size
Reply with quote

Hi,

Please find another example for AVGREC

// SPACE=(128,(5,2)),AVGREC=K
The space allocation indicates an average record length of 128 bytes,
a primary quantity of 5K (5,120) records,
and a secondary quantity of 2K (2,048) records.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts Increase the screen size after split mistah kurtz TSO/ISPF 2 Fri Sep 02, 2016 6:39 pm
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us