View previous topic :: View next topic
|
Author |
Message |
Amb
New User
Joined: 12 Mar 2010 Posts: 64 Location: India
|
|
|
|
Hi,
I have thousands of files present in my system.
My requirement is to find the files which have size more than 4GB.
I am suggested to look out for file which have
DATACLAS=EXTENDED or DATACLAS=EXTENDX.
Can I write a code to achieve this? I have absolutely no clue how to find out this information? Pls can anyone help. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
DCOLLECT data will have the DATACLAS in the D records, or you could try using ISMF online.
If you are unsure, the best bet would be to talk to your storage people. |
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 580 Location: London
|
|
|
|
Try running this. It'll only abend if you don't have FDR installed. Note that this looks at every online volume on the system so may take a while! Ideally you would do this more intelligently by limiting it to storgrp or dsname patterns etc in which case you'd remove the ONLINE keyword from teh ENABLE= parameter.
//FDREPORT EXEC PGM=FDREPORT,REGION=1024M
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//ABRMAP DD SYSOUT=*
//ABRSUM DD SYSOUT=*
//SORTLIB DD DSN=SYS1.SORTLIB,DISP=SHR
//SYSIN DD *
REPORT FIELD=(NAME,BYTES,DATACLAS,VOL,STORGRP,CRDATE)
XSELECT CAPBYTES.GE.4000M
SORT FIELD=(NAME)
SUMM FIELD=(CAPBYTES)
PRINT RPTYPE=TABLE,DATATYPE=VTOC,SORT=CO,SUM=Y,
ENABLE=(FASTPATH,ONLINE,RPTDUPDSNCH),
BYTEF=MEGA,SUMBYTEF=MEGA
/*
Run the above JCL with just XHELP ALL in the sysin to get a help manual printed. |
|
Back to top |
|
|
Amb
New User
Joined: 12 Mar 2010 Posts: 64 Location: India
|
|
|
|
Hey the above utility 'FDREPORT' is not working for me.
Is there any other utility that could give me the size of datasets residing on mainframes? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
the suggestion You were given is a bit misleading,
the REAL size of a dataset has <little> to do with the dataclass
The dataclass is assigned at allocation time, the REAL size of a dataset is something You can determined after a dataset has been written!
the proper approach is to use DCOLLECT and process based on the dataset size
and process the data returned in the ACTIVE Dataset section ( record type D )
and consider the flags
DCDALLFG DCDUSEFG to determine if the requested info was returned
and the relative values
DCDALLSP DCDUSESP
as described here
publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?topic=/com.ibm.zos.r9.idai200/recstr.htm
and carry on the computations from there
google for SORT DCOLLECT EXAMPLES
or look at the cbt tape for
File # 206 DCOLLECT REXX execs from Linnea Nichols
or as expat has suggested use the ismf dialogs
looking at the real size might help to find out if the datasets allocated with dataclass
EXTENDED and friends really belong there |
|
Back to top |
|
|
|