IBM / IBM-Z-zOS

The helpful and handy location for finding and sharing z/OS files, which are not included in the product.
Apache License 2.0
388 stars 185 forks source link

Print record type statistics when no PLUGIN specified #257

Closed kgibm closed 10 months ago

kgibm commented 10 months ago

Example output:

$ java -Xmx1g -cp smf.jar com.ibm.smf.format.SMF "INFILE(MYSMF.DS1)"
SMF file analysis starts ...

SMF Data for system ABCD covering Mon Dec 11 12:30:00 GMT 2023 to Mon Dec 11 14:29:59 GMT 2023
 Record Type      Records  %Total   Avg Length   Min Length   Max Length
          98        1,440    0.03    28,533.69       27,292       30,204
         120    4,801,374   99.97     1,680.77        1,236        6,116
       Total    4,802,814  100.00     1,688.82        1,236       30,204

SMF Data for system EFGH covering Mon Dec 11 12:30:00 GMT 2023 to Thu Dec 14 10:28:06 GMT 2023
 Record Type      Records  %Total   Avg Length   Min Length   Max Length
           2            1    0.00        14.00           14           14
           3            1    0.00        14.00           14           14
          98        1,440    0.02    27,914.16       20,124       30,524
         120    6,183,802   99.98     1,598.33        1,236        6,116
       Total    6,185,244  100.00     1,604.45           14       30,524

SMF file analysis ended.

Revert to previous behavior with -DPRINT_DETAILS=YES