Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula for determining file size

Status
Not open for further replies.

ccprgrmr

Programmer
Jul 7, 1999
34
US
Does anyone remember what the formula is for determining file size......I have a mind block and cant remember it......can anyone help out?
 
You can also use the following cmd's within a CL pgm to retrieve a file's size:

RTVMBRD NBRCURRCD(&NOREC) will give you no. of records
RTVMBRD DTASPCSIZ(&SIZE) will give the data space size
RTVMBRD ACCPTHSIZ(&SIZE) will give the access path size
 
you can use DSPOBJD or DSPLIB command to see the size of the object if you want it from command line.
DSPLIB would give you all the objects in the library with the sizes.
if you are trying it from inside a CL, you can use a
RTVOBJD with SIZE(&VAR1)
SAVSIZE(&VAR2)
this woulg give you the size of the object.

karthik
[thumbsup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top