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

How to know the length of a data set in KB


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bnveena

New User


Joined: 29 May 2007
Posts: 50
Location: hyderabad

PostPosted: Fri Feb 27, 2009 8:40 am
Reply with quote

Hi ,

I want to know the length of a data set in Kilo bytes.
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 Feb 27, 2009 8:51 am
Reply with quote

Hello,

Multiply lrecl * number-of-records and divide by 1024.
Back to top
View user's profile Send private message
arunkumar atr

New User


Joined: 03 Dec 2008
Posts: 19
Location: Chennai

PostPosted: Wed Nov 25, 2009 3:37 pm
Reply with quote

Hi,

If u know the length of DS in tracks, then here is the solution..

1 track = 56 KB
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Nov 25, 2009 3:41 pm
Reply with quote

Quote:
If u know the length of DS in tracks, then here is the solution..
1 track = 56 KB
please post the reference where You found this misleading info icon_evil.gif

even the original question is badly posed...
the disk space allocated to the dataset..
or the space used inside the allocation??
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


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

PostPosted: Wed Nov 25, 2009 3:51 pm
Reply with quote

arunkumar atr wrote:
Hi,

If u know the length of DS in tracks, then here is the solution..

1 track = 56 KB


That will depend on the disk device type.
Beside that on 100T-byte tape drives, the track size is about 10 microns icon_rolleyes.gif
Back to top
View user's profile Send private message
arunkumar atr

New User


Joined: 03 Dec 2008
Posts: 19
Location: Chennai

PostPosted: Wed Nov 25, 2009 4:28 pm
Reply with quote

Hi,

I would have mention it for 3390 DASD...

I refered the following link to get tat info...
groups.google.com/group/bit.listserv.ibm-main/msg/56b4078071adc588
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Nov 25, 2009 5:24 pm
Reply with quote

You misunderstood the sense of the sentence ...
the device geometry is used as a base to carry on all the subsequent calculations..
nowhere is said that the You would be able to store 56kb on a 3390 track

see
ibmmainframes.com/viewtopic.php?t=35906&postdays=0&postorder=asc&start=15
for the exact formulas
Back to top
View user's profile Send private message
arunkumar atr

New User


Joined: 03 Dec 2008
Posts: 19
Location: Chennai

PostPosted: Wed Nov 25, 2009 6:05 pm
Reply with quote

Hi enrico sorichetti,

I got the following info from the link.... www.lascon.co.uk/d008003.htm

It says tat in 3390-3 volume, we have 55,996 usable bytes per track...
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: Wed Nov 25, 2009 6:38 pm
Reply with quote

Quote:
It says tat in 3390-3 volume, we have 55,996 usable bytes per track
Your assumption is that all 55,996 bytes are usable for every file -- which is not true. If the file has fixed length records, and the record length is not 27998 or an even divisor of 27998, you will not be able to use all 55,996 bytes. And this assumes half-track blocking is being used -- other block sizes can reduce the amount of used space per track by 75-80%.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


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

PostPosted: Wed Nov 25, 2009 6:57 pm
Reply with quote

bnveena wrote:
Hi ,

I want to know the length of a data set in Kilo bytes.


Why would someone want to know that (the 1.000.000 dollar question)?
As far as i know nobody is interested in kilobytes, everybody computes space in tracks, cylinders, volumes etc.
Formulas enough to do that kind of computations.
Using DATACLASS makes it even easier, using a small DATACLASS for big
datasets or a large DATACLASS for a small dataset will bring the storage guys to your door in seconds with their baseball bats.
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: Wed Nov 25, 2009 7:10 pm
Reply with quote

Quote:
Why would someone want to know that (the 1.000.000 dollar question)?
If the data set has to be transferred to another system (Unix or Windows based, for example), the size in KB could be relevant.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Nov 25, 2009 7:14 pm
Reply with quote

Quote:
will bring the storage guys to your door in seconds with their baseball bats.

No, us storage guys are really nice people icon_biggrin.gif
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: Wed Nov 25, 2009 7:58 pm
Reply with quote

Quote:
No, us storage guys are really nice people
You say that NOW! icon_biggrin.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


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

PostPosted: Wed Nov 25, 2009 8:21 pm
Reply with quote

The storage guys i know are my best friends (and yes after a lot of boozing is involved) icon_wink.gif
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Nov 25, 2009 9:08 pm
Reply with quote

Robert Sample wrote:
Quote:
No, us storage guys are really nice people
You say that NOW! icon_biggrin.gif

Yeah, only because I've left my baseball bat at home today icon_cry.gif


PeterHolland wrote:
The storage guys i know are my best friends (and yes after a lot of boozing is involved) icon_wink.gif

Yes, we are easily bribable - Mine's a Leffe blonde thanks icon_lol.gif
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts VB to VB copy - Full length reached SYNCSORT 8
Search our Forums:

Back to Top