Victor, On recent releases you should not have to calculate the size of the 
data set using block count and blksize - the size is provided in edg@dss6. See 
the rmm G&R for details of what this contains - a factor and a value 
concatenated.
In the DATASET DISPLAY of the rmm ISPF dialog you can see how this is used for 
display in the panels.

To get the size in older releases convert bytes to Kilobytes. size = edg@blkc * 
edg@blks / 1024
Remember this can only be an approximation in some cases.

The tape subsystem reports actual bytes transferred, so can avoid such 
approximation. It also reports the bytes after hardware compression. Until 
recently there was no way to get this from rmm. For a long time you could get 
"percent of volume" - when the tape device reported such information (IBM 3590, 
TS11xx,....).That allowed some extra calculation to get information about what 
was actually on the tape volume.
More recently there is extra information recorded by rmm, and reported via 
LISTVOLUME and LISTDATASET, and used for building better size and usage 
information for volumes and data sets, in the extract file. See APAR OA33958 - 
which is billed as being D/T3592 E07 - TS1140. The doc - and more recent 
release books - contain a section titled "Understanding Volume Usage, Capacity, 
and Compression". That gives details of what is recorded, displayed, and 
calculated.

BTW, edg@blkc is a block count for each DATASET record in rmm - which equates 
to a single tape file. For multi-volume data sets, each part of a data set will 
have a DATASET record, i.e. one for each volume. So, to get the size of the 
complete data set you need to sum all the block count values, then calculate 
size.  What edg@blkt does is avoid the need to retrieve all DATASET records and 
sum the values - it is the total block count for the data set across all its 
volum.  There is also now a edg@blk6 to support much larger block counts (up to 
16 characters).

HTH

Mike Wood

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to