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

Dataclass parameter


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

New User


Joined: 12 Mar 2010
Posts: 64
Location: India

PostPosted: Thu Jun 09, 2011 6:05 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Jun 09, 2011 6:13 pm
Reply with quote

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
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Thu Jun 09, 2011 6:54 pm
Reply with quote

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
View user's profile Send private message
Amb

New User


Joined: 12 Mar 2010
Posts: 64
Location: India

PostPosted: Fri Jun 10, 2011 10:20 am
Reply with quote

Hey the above utility 'FDREPORT' is not working for me. icon_sad.gif

Is there any other utility that could give me the size of datasets residing on mainframes?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Jun 10, 2011 11:02 am
Reply with quote

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
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 Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top