IAMSMFVS Reports
Another reporting alternative, if the IAM SMF records are being recorded, is to use the IAMSMFVS program. IAMSMFVS provides a handy way to monitor and track the use of IAM within an installation, or by particular applications. This program produces three reports, an EXCP report, a Data set Report, and a Size Report. Each report summarizes activity with one line per data set and reports on different statistics and attributes. The EXCP report and the Size report, by default reports the top 100 data sets, while the Data set Report contains all of the data sets that were processed. Some customers have used the IAMSMFVS report to watch and determine when various IAM data sets may need to be reorganized based on a percentage of the overflow area in use.
Example IAMSMFVS JCL
An example of the JCL and control card to run IAMSMFVS is shown below. Full details on running IAMSMFVS and on the control card input are provided in the System Analysis Utilities IAMSMFVS — Data Set Analysis Program of the space. IAMSMFVS requires SMF type 30, subtype 4 records or SMF type 4 records to produce reports. There is one keyword specified on the example REPORT control card, which is DSORG=IAM. By default, IAMSMFVS will produce reports on IAM and VSAM.
Example of JCL to run IAMSMFVS (EX1073A)
//SYSMF DD DISP=SHR,DSN=my.smf.data
//SYSPRINT DD SYSOUT=*
//SORTIN DD UNIT=SYSDA,SPACE=(CYL,(50,10))
//SORTOUT DD UNIT=SYSDA,SPACE=(CYL,(50,10))
//SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,(50,10))
//SORTWK02 DD UNIT=SYSDA,SPACE=(CYL,(50,10))
//SORTWK03 DD UNIT=SYSDA,SPACE=(CYL,(50,10))
//SYSOUT DD SYSOUT=*
//SYSIN DD *
REPORT DSORG=IAM
/*
A few additional keywords for the REPORT control card that you might find useful for IAM reporting include:
CURRENT - Specifies that the current overflow usage values be reported on, rather than the maximum amount encountered in the data.
DETAIL - The EXCP report will contain a breakdown for each use of the file, including job, step, and program name information.
DSG - Specifies only data sets that begin with the values specified will be included in the reports. For example, DSG=PROD, or DSG=(PROD1,PROD2.AP,PROD3.AR)
MAXDSNS - Specifies the maximum number of data sets that IAMSMFVS will accumulate statistics for. The default value is 60000. Note that for VSAM, each component counts as a data set, plus the cluster name. So, a KSDS will require 3 entries, and an ESDS will require 2 entries. IAM data sets only require 1 entry each.
MAXREPORTS - Specifies the number of data sets that will be included in the EXCP and the SIZE reports. Default is 100.
Sample IAMSMFVS Summary Report
The first page of the IAMSMFVS output consists of a summarization of all of the data that was selected for reporting, including totals for data set names, job names, total EXCP counts by access method, and DASD space used by access method (that is., IAM and VSAM). Below is a sample output of the first page.
Sample IAMSMFVS Summary Report
IAM303 CARD IMAGE - * REPORT DSORG=IAM 00130009*
IAM491 SMF REPORT FUNCTION STARTED - 10.59.29
IAM601 SMF RECORDS -- READ....132651 USED.....13912 DROPPED.........0
902 DATA SETS TABLED REPRESENTING 4 JOBS -- DATED 2014.295 06:49 THRU 2014.295 10:53
SPACE UTILIZATION SUMMARY -
DEVICE TYPE.......3390 VSAM CYLINDERS............0 IAM CYLINDERS........78642
TOTAL DISK EXCPS..........7941755 VSAM EXCPS................0 IAM EXCPS..........4284864
Sample IAMSMFVS IAM EXCP Report
After the Summary Report, IAMSMFVS produces the EXCP report. There is a separate EXCP report for IAM data sets and VSAM data sets, if both types of data sets are being reported on. In our sample case, only IAM data sets are being reported, so there is only an IAM EXCP report. Below is a sample of an IAM EXCP report, as produced by IAMSMFVS. Entries are sorted by largest to smallest EXCP count. As stated previously, only the top 100 data sets are included, unless MAXREPORTS has been specified with a different value.
Sample IAMSMFVS IAM EXCP Report
USE TOTAL OVERFLOW USED
DATA SET NAME COUNT EXCPS RECORDS READS INSERTS UPDATES DELETES RECS % TRKS
---- --- ---- ----- ----- ------- ----- ------- ------- ------- ---- --- ----
IAMV.KSD322.CLUSTER 2 146577 127000 126001 67000 0 0 67000 91 31771
IAMV.KSD502.$IAM.CLUSTER 3 93052 5274000 264000 290000 20000 16000 181398 20 13711
IAMV.KSD500.$IAM.CLUSTER 2 39654 5267116 188281 278527 14263 11411 173273 20 13696
IAMV.KSD501.$IAM.CLUSTER 2 39642 5267116 188281 278527 14263 11411 173276 20 13696
IAMV.KSD401.CLUSTER 6 36827 90000 330015 0 0 60000 0 100 2252
IAMV.KSD431.CLUSTER 4 28054 160000 925005 110000 125000 0 109991 143 1586
IAMV.KSD433.CLUSTER 4 28054 160000 925005 110000 125000 0 109991 143 1586
IAMV.KSD432.CLUSTER 3 26223 160000 765004 110000 125000 0 109991 143 1586
IAMV.KSD434.CLUSTER 3 25827 160000 765004 110000 125000 0 109991 166 1585
IAMV.KSD513.CLUSTER 2 23067 572710 0 18750 0 0 18750 81 26082
IAMV.KSD435.CLUSTER 4 21417 160000 925005 110000 125000 0 109977 166 1204
IAMV.KSD430.CLUSTER 4 20778 160000 750004 110000 110000 0 109991 71 1384
IAMV.KSD291.CLUSTER 2 20713 21600 0 18000 0 0 18000 24 523
IAMV.KSD362.CLUSTER 4 14787 614000 614001 130000 0 0 29906 91 15409
IAMV.KSD360.CLUSTER 4 14771 554000 554001 230000 0 0 29906 60 13912
IAMV.KSD361.CLUSTER 4 14692 554000 554001 230000 0 0 29906 67 13912
IAMV.KSD425.CLUSTER 5 13023 62000 310005 24000 0 12000 12000 98 1557
IAMV.KSD423.CLUSTER 4 12969 160000 520006 110000 50000 0 147496 168 854
IAMV.KSD428.CLUSTER 5 12042 62000 310005 24000 0 12000 9656 79 1418
IAMV.KSD427.CLUSTER 5 10687 62000 310005 24000 0 12000 10335 85 1421
IAMV.KSD321.CLUSTER 3 9468 67100 66101 67000 0 0 2588 34 16788
IAMV.KSD421.CLUSTER 5 9302 160000 850006 220000 0 110000 109996 125 406
IAMV.KSD470.CLUSTER 5 8764 8539 22352 2629 6120 1059 2279 56 2760
The Use Count is the number of SMF records processed for the data set. The following fields represent the accumulation of data from all of the records: EXCPS, READS, INSERTS, UPDATES, and DELETES. If the keyword CURRENT is included on the REPORT request, then the Overflow statistics are from the most recent record, otherwise they are the maximum encountered. The RECORDS and TRACKS USED are the maximum encountered.
Sample IAMSMFVS Data set Report
The next report is the Data set Summary Report. This report is sorted by data set name, and includes all of the data sets selected for this execution of IAMSMFVS. The information presented includes basic data set attribute information, such as record length, key length, relative key position, and the block size or CI size.
Sample IAMSMFVS Data set Report
USE TOTAL AVG MAX KEY BLK OR FRSPC
DATA SET NAME COUNT EXCPS DSORG RECFM RECL LRECL LEN RKP CISIZE CI% CA%
---- --- ---- ----- ----- ----- ----- ----- ----- --- --- ------ --- ---
IAMV.DCV201.CLUSTER 2 38 IAM VO-DC 64 64 4 12 11476 10 10
IAMV.DCV202.CLUSTER 2 328 IAM VO-DC 670 670 4 8 11476 6 10
IAMV.DCV203.CLUSTER 3 400 IAM VO-DC 256 256 4 8 11476 10 20
IAMV.DCV204.CLUSTER 2 428 IAM VO-DC 512 512 4 252 11476 10 10
IAMV.DCV205.CLUSTER 2 857 IAM VO-DC 1024 1024 4 516 11476 10 10
IAMV.DCV206.CLUSTER 2 5 IAM VO-DC 64 64 4 12 11476 10 10
IAMV.DCV206A.CLUSTER 2 5 IAM VO-DC 64 64 4 12 11476 10 10
IAMV.DCV206B.CLUSTER 2 5 IAM VO 64 64 4 12 11476 10 10
IAMV.DCV206C.CLUSTER 2 5 IAM VO 64 64 4 50 11476 10 10
IAMV.DCV206D.CLUSTER 2 5 IAM VO 60 64 4 54 11476 10 10
IAMV.DCV206E.CLUSTER 2 5 IAM VO-DC 64 64 4 12 11476 10 10
IAMV.DCV206F.CLUSTER 2 5 IAM VO-DC 64 64 4 12 11476 10 10
IAMV.DCV207.CLUSTER 2 2377 IAM VO-DC 540 1040 16 8 11476 10 10
IAMV.DCV208A.CLUSTER 3 16 IAM VO-DC 175 175 75 8 11476 10 10
IAMV.DCV208B.CLUSTER 3 172 IAM VO-DC 175 175 75 8 11476 10 10
IAMV.DCV209.CLUSTER 2 3433 IAM VO-DC 1040 1040 24 8 11476 10 10
IAMV.DCV210.CLUSTER 2 179 IAM VO-DC 64 128 12 12 11476 10 10
IAMV.DCV211.CLUSTER 2 1157 IAM VO-DC 64 1039 12 12 11476 10 10
IAMV.DCV212.CLUSTER 1 13 IAM VO-DC 64 1024 12 12 11476 10 10
IAMV.DCV213.CLUSTER 2 104 IAM VO-DC 64 1024 12 12 11476 10 10
IAMV.DCV402.CLUSTER 3 18 IAM VO-DC 2339 2340 4 8 23476 10 10
IAMV.KSD210.CLUSTER 2 113 IAM VO-DC 100 1000 4 8 11476 10 10
IAMV.KSD211.CLUSTER 3 258 IAM VO-DC 100 500 4 8 11476 1 10
IAMV.KSD212.CLUSTER 3 182 IAM VO-DC 100 500 4 8 11476 1 10
IAMV.KSD213.CLUSTER 3 327 IAM VO-DC 100 500 4 8 11476 1 10
IAMV.KSD214.CLUSTER 3 4097 IAM VO 100 2100 54 8 11476 0 10
IAMV.KSD215.CLUSTER 3 152 IAM VO-DC 100 1000 4 8 11476 10 10
IAMV.KSD216.CLUSTER 3 290 IAM VO-DC 100 1000 4 8 11476 10 10
IAMV.KSD217.CLUSTER 2 2034 IAM VO-DC 256 256 12 8 23476 10 10
IAMV.KSD220.CLUSTER 2 628 IAM VO-DC 100 1000 4 8 11476 10 10
IAMV.KSD225.CLUSTER 7 1489 IAM VO-DC 1147 2040 12 8 13682 1 10
IAMV.KSD230.CLUSTER 2 391 IAM VO-DC 1000 1020 4 8 11476 10 10
IAMV.KSD231.CLUSTER 2 387 IAM VO-DC 1000 1020 4 8 11476 10 10
IAMV.KSD232.CLUSTER 2 240 IAM VO-DC 1000 1120 4 8 11476 10 10
IAMV.KSD240.CLUSTER 2 693 IAM VO-DC 100 1000 4 8 11476 10 10
The RECFM values for IAM data sets have the following meanings:
VE: Enhanced format, variable length records
VO: Enhanced format, variable overflow
DC: Data Compressed
Sample IAMSMFVS IAM Size Report
The Size report is broken out in a manner similar to the EXCP report. There are separate reports for IAM and VSAM data sets, and the reports consist of the largest 100 data sets, or whatever value was specified on the MAXREPORTS operand. This report contains the most information about the overflow area use, so it would be the one to use for a determination as to whether reorganization is needed.
Sample IAMSMFVS IAM Size Report
TRACKS TOTAL USE TOTAL INDEPENDENT OVERFLOW PRIME
DATA SET NAME USED EXCPS COUNT RECORDS MAX REC USE REC % USE EXT CI%
---- --- ---- ------ ----- ----- ------- ------- ------- ----- ----- ---
IAMV.KSD322.CLUSTER 31771 146577 2 127000 73357 67000 91 0 0
IAMV.KSD513.CLUSTER 26082 23067 2 572710 23122 18750 81 0 0
IAMV.KSD261.CLUSTER 22465 5998 4 1640000 0 0 0 0 10
IAMV.KSD321.CLUSTER 16788 9468 3 67100 7438 2588 34 64412 0
IAMV.KSD362.CLUSTER 15409 14787 4 614000 32700 29906 91 9936 0
IAMV.KSD322.CLUSTER 15008 1002 1 60000 0 0 0 0 0
IAMV.KSD360.CLUSTER 13912 14771 4 554000 49400 29906 60 19948 0
IAMV.KSD361.CLUSTER 13912 14692 4 554000 44580 29906 67 19948 0
IAMV.KSD502.$IAM.CLUSTER 13711 93052 3 5274000 864552 181398 20 0 30
IAMV.KSD501.$IAM.CLUSTER 13696 39642 2 5267116 864552 173276 20 0 30
IAMV.KSD500.$IAM.CLUSTER 13696 39654 2 5267116 864552 173273 20 0 30
IAMV.KSD251.CLUSTER 5339 716 2 330000 0 0 0 0 10
IAMV.KSD433.CLUSTER 1586 28054 4 160000 76637 109991 143 1 0
IAMV.KSD432.CLUSTER 1586 26223 3 160000 76637 109991 143 1 0
IAMV.KSD431.CLUSTER 1586 28054 4 160000 76637 109991 143 1 0
IAMV.KSD434.CLUSTER 1585 25827 3 160000 66110 109991 166 1 0
IAMV.KSD425.CLUSTER 1557 13023 5 62000 12130 12000 98 0 0
IAMV.KSD427.CLUSTER 1421 10687 5 62000 12130 10335 85 0 0
IAMV.KSD428.CLUSTER 1418 12042 5 62000 12170 9656 79 0 0
IAMV.KSD430.CLUSTER 1384 20778 4 160000 153274 109991 71 1 0
IAMV.KSD435.CLUSTER 1204 21417 4 160000 66022 109977 166 1 0
IAMV.KSD216.CLUSTER 1098 290 3 335000 0 0 0 0 10
IAMV.KSD331.CLUSTER 1002 206 2 40000 0 0 0 0 10
For Enhanced Format files, the Maximum Overflow Records are based on either the user specified number of overflow records, from the CREATE O= override. The O= override value is retained for informational purposes to aid in making decisions about when the data set should be reorganized. IAM makes no guarantee that there is sufficient DASD space for IAM to actually keep that number of records in the overflow area. Also, the overflow may be able to hold more records than the number specified, so the overflow used percentage can exceed 100.
If no override had been provided, then maximum overflow records is calculated based on the number of extended blocks currently allocated to the data set.