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

Size of dataset in KB or MB


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

New User


Joined: 25 Feb 2009
Posts: 3
Location: Chennai

PostPosted: Wed Jul 15, 2009 2:57 pm
Reply with quote

Hi all..! Is it possible to find the size of a dataset in KB or MB..?


Regards
Zakir
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Jul 15, 2009 2:59 pm
Reply with quote

If you have the size occupied by the dataset in tracks and cylinders, may be you can calculate as

1 track - 47 kb
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Jul 15, 2009 3:06 pm
Reply with quote

I use a factor of 55.33333333 which converts the Kb allocations used in DCOLLECT into tracks, pretty much accurately for a 3390 geometry volume.

However, the DASD subsystem will convert all space requests into tracks or cylinders for physical space allocation.
Back to top
View user's profile Send private message
zakir

New User


Joined: 25 Feb 2009
Posts: 3
Location: Chennai

PostPosted: Wed Jul 15, 2009 3:15 pm
Reply with quote

I have my dataset created in cylinders. While calculating do we need to take the size of primary secondary inaccount. If so how to find the dataset sie in KB or MB..
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Jul 15, 2009 3:24 pm
Reply with quote

If you know the RECFM, LRECL and approximate number of records of the dataset it is easy enough to calculate the space requirements
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Jul 15, 2009 3:40 pm
Reply with quote

Zakir,

Quote:
While calculating do we need to take the size of primary secondary inaccount. If so how to find the dataset sie in KB or MB..


Do a 3.4 and get the no of units allocated for your dataset. It can be in TRK, CYL, KB or MB.

As mentioned earlier

1 TRK - 47 KB
1 CYL - 15 tracks

You will have to go by the no of units allocated to u r data set and not by the units used.

Btw, Do you have RLSE parameter coded in the JCL while creating the dataset?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Jul 15, 2009 3:42 pm
Reply with quote

Quote:
1 TRK - 47 KB

Which device geometry are you using ?
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Jul 15, 2009 4:00 pm
Reply with quote

Expat,

Searched the forum and got this info

Quote:
1 track of DASD = 56Kb.


Is this figure correct?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Jul 15, 2009 4:06 pm
Reply with quote

Yes, the track has a 56k capacity, but only about 53.3333 is usable for data.
Back to top
View user's profile Send private message
zakir

New User


Joined: 25 Feb 2009
Posts: 3
Location: Chennai

PostPosted: Wed Jul 15, 2009 4:13 pm
Reply with quote

Aaru,

RLSE is not coded in the JCL. Can you tell me what in case of RLSE is coded.

Anyways I got clarified with your's and Expat's explanation.
Thanks for that..


Thanks and Regards
Zakir
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Jul 15, 2009 4:16 pm
Reply with quote

The RLSE parameter is well described in the JCL referemce manual, easily reached from the "IBM Manuals" button at the top of each page.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Jul 15, 2009 5:00 pm
Reply with quote

Thanks Expat for the confirmation.

Zakir,

Check the manuals as suggested.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jul 15, 2009 5:37 pm
Reply with quote

why was this a COBOL question?
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Jul 15, 2009 5:40 pm
Reply with quote

Dick,

Quote:
why was this a COBOL question?


It became a COBOL question just because the user is new to the forum.
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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top