DCOLLECT produces flat file of info see
https://www.ibm.com/docs/en/zos/2.3.0?topic=environment-storage-group-data-collection-example-2
Example JCL
//COLLECT2 JOB ...
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//OUTDS DD DSN=USER.DCOLLECT.OUTPUT,
// STORCLAS=LARGE,
// DSORG=PS,
// DCB=(RECFM=VB,LRECL=644,BLKSIZE=0),
// SPACE=(1,(100,100)),AVGREC=K,
// DISP=(NEW,CATLG,KEEP)
//SYSIN DD *
DCOLLECT -
OFILE(OUTDS) -
STORAGEGROUP(STGGP001) -
NODATAINFO
/*
record layout here
https://www.ibm.com/docs/en/zos/2.1.0?topic=output-dcollect-record-structure
You can use dfsort etc to format the entries
Ive written a formatter
https://github.com/colinpaicemq/SMFFormatter/blob/master/DCOLLECT.md
which produces output like
ID :S0W1
Time :15:23:52.15
Date :2020/11/24
Storage class :SCAPPL
Last updater :IBMUSER
Date last updated :2020/11/23
Time last updated :09:27
Description :APPLICATION DATA STORAGE CLASS
flag1 :Availability
:Use Direct response time
:Use Seq response time
flag2 :Guaranteed space yes
Accesibility :3
Dir ms rate (MSR) :9
Direct MSR 9 means May CACHE
Seq ms rate (MSR) :20
FLAG CF weight :64
On Thu, 17 Jun 2021 at 15:56, Jack Zukt <[email protected]> wrote:
> Hi,
> I am trying to extract information from SMS regarding all the storage
> groups that are defined to one system and all of the associated information
> for each of these storage groups, including the description, if there is
> one.
> As there more then a hundred storage groups defined,doing this using ISMF
> display/listsys and copy/paste is error prone and a burdensome task.
> Is there a way to do this with commands and/or batch?
> Thanks for any help that you can provide
> Jack
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN