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

allocated space report


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

New User


Joined: 05 Nov 2010
Posts: 57
Location: Amsterdam

PostPosted: Wed Aug 27, 2014 6:54 pm
Reply with quote

Hi,

I need to generate a list/report of the space allocated for a group of datasets.

I have 400 odd GDGs with various generations and I want to create a list of only the latest generation.

any bright ideas?

Dan
icon_cool.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 Aug 27, 2014 7:21 pm
Reply with quote

Do you have the means to generate the space report once you know the dataset names of the zero generation or is it the whole sheebang you want ?
Back to top
View user's profile Send private message
Daniel Prosser

New User


Joined: 05 Nov 2010
Posts: 57
Location: Amsterdam

PostPosted: Wed Aug 27, 2014 7:37 pm
Reply with quote

I need a report that specifies the dataset name & allocated space for ALL of the datasets.

HLQ.**.*(0)

I know the names it's just there is rather alot of them.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Aug 27, 2014 7:55 pm
Reply with quote

www.ibmmainframes.com/viewtopic.php?t=56457

The link above is a REXX utility to return the zero generation of a given GDG which may need a bit of tweaking as I believe it only operates on one GDG at a time, but can be easily changed to cope with more.

That will give you the zero generation of the GDG bases, so that just leaves the problem of the reporting function.

Do you have anything like FDRREPORT installed at your site ?
Back to top
View user's profile Send private message
Daniel Prosser

New User


Joined: 05 Nov 2010
Posts: 57
Location: Amsterdam

PostPosted: Thu Aug 28, 2014 1:59 pm
Reply with quote

That looks interesting, I'll have a little play and see what I can do.

The reporting doesn't need to be super pretty so I am sure I can make this work.

Thanks icon_biggrin.gif
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Sat Aug 30, 2014 2:39 pm
Reply with quote

The only problem with FDREPORT is you have to do a separate report for online and migrated datasets. Won't matter if you have all your (0) generations online though.
e.g.
//GDSLIST EXEC PGM=FDREPORT,REGION=128M
//SYSPRINT DD SYSOUT=0
//SYSOUT DD SYSOUT=0
//SYSUDUMP DD SYSOUT=0
//ABRMAP DD SYSOUT=*
//ABRSUM DD SYSOUT=*
//SORTLIB DD DSN=SYS1.SORTLIB,DISP=SHR
//SYSIN DD *
REPORT FIELD=(NAME,CAPBYTES,SIZE,GDGRELGN,GDGLIMIT,GDGFLAG)
XS XDSN=GDG.NAME%.*,GDGRELGN.EQ.(0)
SORT FIELD=(NAME)
SUMM FIELD=(CAPBYTES,SIZE)
PRINT SUM=Y,SORT=CO,DATATYPE=CATVTOC,RPTYPE=TABLE,
ENABLE=(FASTPATH,GDGONLY),RECORDSUMMARY=CLUSTER,
BYTEF=KILO,SUMBYTEF=MEGA


IDCAMS DCOLLECT might be an option.

Naviquest (ISMF in batch) is another option.

You can use ISMF option 1 panels directly but it can only do one dsname mask at a time.
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Allocated cylinders of a dataset DB2 12
No new posts Need help on formatting a report DFSORT/ICETOOL 14
No new posts Creating Report using SORT DFSORT/ICETOOL 7
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
Search our Forums:

Back to Top