Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 445
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: 10327
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 Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us