Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Dataclass parameter

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Dataclass parameter
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jun 09, 2011 6:13 pm    Post subject:
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 User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Thu Jun 09, 2011 6:54 pm    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Fri Jun 10, 2011 11:02 am    Post subject: Reply to: Dataclass parameter
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
http://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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm
No new posts Send parameter for macro STIMERM from... Daniel Teolotitla PL/I & Assembler 13 Tue Jul 05, 2016 9:23 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us