MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

To calculate bytes occupied by dataset

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
kanitha-mvs
Beginner


Joined: 17 May 2006
Posts: 26
Topics: 17

PostPosted: Wed May 28, 2008 2:38 am    Post subject: To calculate bytes occupied by dataset Reply with quote

Hi,

Is there any way to calculate the space occupied by the dataset using the LRECL and BLOCKsize information.

Thanks.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed May 28, 2008 6:02 am    Post subject: Reply with quote

LRECL and BLKSIZE alone will not give you the space. You need to know how many records are in the file. Maybe you do not undesrtand LRECL and BLKSIZE and the relationship between the two? One place to check this would be the JCL manual. Also look at the SPACE parameter whilst you are doing that.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Wed May 28, 2008 8:24 am    Post subject: Reply with quote

In addition to what Nic said, you didn't indicate the DSORG. Is it F, FB, V, VB, Spanned, VSAM, PO?
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
kanitha-mvs
Beginner


Joined: 17 May 2006
Posts: 26
Topics: 17

PostPosted: Fri May 30, 2008 12:39 am    Post subject: Reply with quote

Hi,

I want to know the space occupied by the dataset that is in migrated status in DASD. The HLIST command provides details about the tracks usage for a migrated dataset without recalling them..

Like this command, is there any command available that will provide the dataset information (Management class, storage class info..) and actual space occupied by migrated dataset without recalling it?

Thanks,
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri May 30, 2008 5:14 am    Post subject: Reply with quote

Why not just HRECALL it, get the info you want ant then HMIG it again? You would have the info by now.

The info ISPF returns is based on current usage. If it is a GDG then looking at a non-migrated version will give you most of the info you want. The space would depend on how well the JCL was coded and the data.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Sat May 31, 2008 4:12 am    Post subject: Reply with quote

You can download the MCDS and use SAS or REXX to analyse the data, or maybe look at DCOLLECTdata.
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
tcurrier
Intermediate


Joined: 10 Feb 2006
Posts: 188
Topics: 68

PostPosted: Mon Jun 09, 2008 5:23 pm    Post subject: Reply with quote

IDCAMS with the LISTCAT function will give you everything you're looking for, EXCEPT for the space used.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Tue Jun 10, 2008 3:21 am    Post subject: Reply with quote

Hmmm, a LISTVTOC would give the space - on that volume. You could rig a rexx program to do the listcat, extract the volumes, do the LISTVTOCs and extract the data and calulate the space used. But will it work for migrated datasets? Are they compressed? Other things.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Sat Jun 21, 2008 5:12 am    Post subject: Reply with quote

Actually, the HLIST command will tell you what the space allocation would be for when the dataset os recalled / recovered.
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group