Go to Home Page
Questions?
Call 1-800-572-5517
 
  Go to Home Page  
  See all products
  See price schedules
  See manuals, tutorials, articles
  Download a free 30-day trial
  See user testimonials
  About Pacific Systems Group
 
 
SMF Tools
  See SMF Record Layouts
  See Sample SMF Reports
  Learn How to Export SMF Data
  Download Free SMF Reporting Software (30 days)
 
One of the greatest SMF record parsing programming languages I've ever seen. Chief, Large Systems Services Branch, NIH
  Choose Spectrum Writer to add 4GL to your product
  Free 60-Page Book (PDF) - How to Make an SMF Report
Spectrum DCOLLECT Reporter - the 4GL DCOLLECT Report Writer.

Spectrum SMF Writer - the 4GL SMF Report Writer.

SMF Type 116 Record

This table shows the record layout for type 116 SMF records
(WebSphere MQ Accounting Data (Version 8)).

List of other SMF record layouts available.
List of sample SMF reports.

Purpose: WebSphere MQ accounting data is written as SMF type 116 records.

WebSphere MQ accounting information can be collected for three subtypes:

  • 0 Message manager accounting records (how much CPU was spent processing WebSphere MQ API calls and the number of MQPUT and MQGET calls). This information is produced when a named task disconnects from WebSphere MQ, and so the information contained within the record might cover many hours.
  • 1 Queue level accounting. Contains data on task identification, task related statistics and queue records.
  • 2 Queue level accounting extension records. This is used when there are too many queue records to fit into a subtype 1 record. Contains sections on task identification and queue records.
  • 10 Channel accounting data

Subtype 0 is produced with trace class 1; subtypes 1 and 2 are produced with trace class 3.


It's easy to report on SMF 116 data! (Jump to sample reports)

SMF Spectrum Writer
We have a low-cost 4GL report writer especially for SMF files. It's called Spectrum SMF Writer.

Spectrum SMF Writer handles the difficult SMF record parsing for you automatically. You just specify which fields you want to see.

Spectrum SMF Writer also converts the arcane date and time fields and reformats them into an attractive report.

Plus, Spectrum SMF Writer can export SMF data as comma delimited files to use on your PC.
 
Try It FREE Now!

The Spectrum Writer definitions for the SMF type 116 record below are based on the description provided by IBM in its "MVS Systems Management Facilities (SMF)" manual and/or DSECTs mapped by its Assembler macros.

 

Spectrum SMF Writer
File Definition for Type 116 SMF Records
WebSphere MQ Accounting Data (Version 8)

***********************************************************************
*          SPECTRUM SMF WRITER -- FILE DEFINITION STATEMENTS          *
*  SMF TYPE 116 RECORD - "WEBSPHERE MQ ACCOUNTING DATA (VERSION 8)"   *
***********************************************************************
OPTION: MISSOFFSET /* TREAT OFFSET ERRORS (99999) LIKE MISSING DATA */
OPTION: STCKADJ(0) /* STCKTIMES ARE INTERVALS, NOT GMT TIMES */
*******************************************************************
*  SMF COMMON HEADER MAPPING MACRO FOR STATISTICS TYPE 100
*******************************************************************
*
FLD: SMF116LEN LEN(2) DISP(0)     /*SMF116 TOTAL LENGTH*/
FLD: SMF116SGD LEN(2) DISP(2)     /*RESERVED*/
FLD: SMF116FLG LEN(1) DISP(4)     /*SYSTEM INDICATOR*/
FLD: SMF116RTY LEN(1) TYPE(BIN) ACC(NO) DISP(5)
                                  /*The SMF record type.*/
*                           For WebSphere MQ accounting records 
*                           this is always 116 (X'74'). 
FLD: SMF116TME LEN(4) TYPE(B-SECS) DISP(6) DEC(2)
                                  /*TIME SMF MOVED RECORD*/
FLD: SMF116DTE TYPE(P-CYYDDD) DISP(10)        /*DATE SMF MOVED RECORD*/
FLD: SMF116SID LEN(4) DISP(14)  /*z/OS subsystem ID. Defines the z/OS*/
*                           subsystem on which the records were
*                           collected. (EX: MV41)
FLD: SMF116SSI LEN(4) DISP(18)
                              /*WebSphere MQ subsystem ID. (EX: MQ07)*/
FLD: SMF116STF TYPE(HALF) DISP(22)/*RECORD SUBTYPE*/
FLD: SMF116RI LEN(3) DISP(24)     /*WebSphere MQ version. (EX: 600)*/
FLD: SMF116SEQ LEN(1) DISP(27)    /*RESERVED*/
FLD: SMF116SD LEN(1) DISP(28)     /*self defining section starts*/
*
***
***The following 3 fields are included for all subtypes
FLD: SMF116_COMMO LEN(4) TYPE(BIN) DISP(28)
                                  /*Offset to common header section.*/
FLD: SMF116_COMML TYPE(HALF) DISP(32)
                                  /*Length of common header section.*/
FLD: SMF116_COMMN TYPE(HALF) DISP(34)
                                  /*Number of common header sections.*/
*
FLD: SMF116_SEC1O LEN(4) TYPE(BIN) DISP(36)
                                  /*Offset to 1st variable section*/
FLD: SMF116_SEC1L TYPE(HALF) DISP(40)
                                  /*Length of 1st variable section*/
FLD: SMF116_SEC1N TYPE(HALF) DISP(42)
                                  /*Number of 1st variable sections.*/
*
FLD: SMF116_SEC2O LEN(4) TYPE(BIN) DISP(44)
                                  /*Offset to 2nd variable section*/
FLD: SMF116_SEC2L TYPE(HALF) DISP(48)
                                  /*Length of 2nd variable section*/
FLD: SMF116_SEC2N TYPE(HALF) DISP(50)
                                  /*Number of 2nd variable sections.*/
*
FLD: SMF116_SEC3O LEN(4) TYPE(BIN) DISP(52)
                                  /*Offset to 3rd variable section*/
FLD: SMF116_SEC3L TYPE(HALF) DISP(56)
                                  /*Length of 3rd variable section*/
FLD: SMF116_SEC3N TYPE(HALF) DISP(58)
                                  /*Number of 3rd variable sections.*/
*
* 4 and 5 new for MQ*
FLD: SMF116_SEC4O LEN(4) TYPE(BIN) DISP(60)
                                  /*Offset to 4th variable section*/
FLD: SMF116_SEC4L TYPE(HALF) DISP(64)
                                  /*Length of 4th variable section*/
FLD: SMF116_SEC4N TYPE(HALF) DISP(66)
                                  /*Number of 4th variable sections.*/
*
FLD: SMF116_SEC5O LEN(4) TYPE(BIN) DISP(68)
                                  /*Offset to 5th variable section*/
FLD: SMF116_SEC5L TYPE(HALF) DISP(72)
                                  /*Length of 5th variable section*/
FLD: SMF116_SEC5N TYPE(HALF) DISP(74)
                                  /*Number of 5th variable sections.*/
*


***********************************************************************
***                                                                  **
*** INSTRUMENTATION STANDARD HEADER DATA IN PRODUCT SECTION          **
***                                                                  **
***********************************************************************
***********************************************************************
**** QWHS     DSECT
***********************************************************************

COMP: QWHS_OFFSET =
        WHEN(SMF116RTY = 116 AND SMF116_COMMN > 0)
                    ASSIGN(SMF116_COMMO)
        ELSE        ASSIGN(99999)
FLD: QWHS     DISP(0) LEN(36) OFFSET(QWHS_OFFSET)
*
FLD: QWHSLEN  LEN(2) TYPE(BIN) DISP(0)
                                  /*LENGTH OF THE STANDARD HEADER*/
FLD: QWHSTYP  LEN(1) DISP(2)      /*HEADER TYPE*/
*
*  **              HEADER TYPE CONSTANTS                             **
COMP: QWHSHS01 = 1                /*..STANDARD HEADER*/
COMP: QWHSHC02 = 2                /*..CORRELATION HEADER*/
COMP: QWHSHT04 = 4                /*..TRACE HEADER*/
COMP: QWHSHU08 = 8                /*..CPU HEADER*/
FLD: QWHSRMID LEN(1) DISP(3)      /*RESOURCE MANAGER ID*/
FLD: QWHSIID  TYPE(HALF) DISP(4)  /*IFC ID*/
FLD: QWHSRELN LEN(2) DISP(6)      /*RELEASE NUMBER AREA*/
FLD: QWHSNSDA LEN(1) TYPE(BIN) DISP(6)
                                  /*NUMBER OF SELF DEFINING AREAS*/
FLD: QWHSRN   LEN(1) DISP(7)      /*RELEASE INDICATOR*/
FLD: QWHSACE  LEN(4) TYPE(BIN) DISP(8)
                                  /*ACE ADDRESS DISPATCH UNIT ADDRESS*/
FLD: QWHSSSID LEN(4) DISP(12)     /*SUBSYSTEM NAME*/
FLD: QWHSSTCK TYPE(STCKTIME) DISP(16)   /*STORE CLOCK VALUE OF HEADER*/
*
* *********************************************************************
* * NOTE- THE FOLLOWING SEQUENCE NUMBERS ARE UNIQUE WITHIN A SINGLE   *
* * SUBSYSTEM INSTANCE AND ARE INITIALIZED TO ZERO ON RESTART.        *
* * BECAUSE OF MP CONSIDERATIONS THE NUMBERS MAY NOT ALWAYS BE        *
* * IN ASCENDING ORDER.                                               *
* *********************************************************************
*
FLD: QWHSISEQ LEN(4) DISP(24)     /*SEQUENCE NUMBER FOR IFCID*/
FLD: QWHSWSEQ LEN(4) DISP(28)     /*SEQUENCE NUMBER FOR DESTINATION*/
FLD: QWHSMTN  LEN(4) DISP(32)     /*ACTIVE TRACE NUMBER MASK*/
FLD: QWHSEND  LEN(4) TYPE(BIN) DISP(36)      /*END OF STANDARD HEADER*/
*
***THE FOLLOWING VALUES DEFINE THE IFCID IN QWHSIID                  **
***                          RMID: DESCRIPTION:                      **

COMP: QWHS0000 = 0                /*..DEFAULT NORMAL TRACE RECORDS*/
COMP: QWHS0001 = 1                /*26 ..SYSTEM STATISTICS*/
COMP: QWHS0002 = 2                /*26 ..MESSAGE STATISTICS*/
COMP: QWHS0003 = 3                /*26 ..ACCOUNTING*/


*/*****************************************************************/
*/*                                                               */
*/*             INSTRUMENTATION CORRELATION DATA                  */
*/*                                                               */
*/*****************************************************************/
***********************************************************************
**** QWHC     DSECT
***********************************************************************

COMP: QWHC_OFFSET =
        WHEN(SMF116RTY = 116 AND SMF116_COMMN > 0 AND SMF116_COMML > 36)
                    ASSIGN(SMF116_COMMO + 36)
        ELSE        ASSIGN(99999)
FLD: QWHC     DISP(0) LEN(92) OFFSET(QWHC_OFFSET)
FLD: QWHCLEN  LEN(2) TYPE(BIN) DISP(0)
                                  /*LENGTH OF THE CORRELATION HEADER*/
FLD: QWHCTYP  LEN(1) DISP(2)      /*TYPE OF HEADER CORRELATION 2*/
FLD: QWHCAID  LEN(8) DISP(4)      /*AUTHORIZATION ID*/
FLD: QWHCCV   LEN(12) DISP(12)    /*CORRELATION ID VALUE*/
FLD: QWHCCN   LEN(8) DISP(24)
                      /*CONNECTION NAME (NOT VALID ON END OF MEMORY &*/
*                        REFLECTS THE MVS HOME ASID CONNECTION NAME) */
FLD: QWHCOPID LEN(8) DISP(40)     /*ORIGINAL OPERATOR ID*/
FLD: QWHCATYP LEN(4) TYPE(BIN) DISP(48) /*CONNECTING SYSTEM TYPE CODE*/
FLD: QWHCTOKN LEN(22) DISP(52)    /*ACCOUNTING TOKEN*/
FLD: QWHCNID  LEN(16) DISP(74)    /*NETWORK IDENTIFIER*/
FLD: QWHCEND  LEN(4) TYPE(BIN) DISP(92)


*/*****************************************************************/
*/*                                                               */
*/*             MESSAGE MANAGER ACCOUNTING DATA                   */
*/*                                                               */
*/*****************************************************************/
***********************************************************************
**** QMAC     DSECT ,                   Message Manager Accounting Data
***********************************************************************

COMP: QMAC_OFFSET =
        WHEN(SMF116RTY=116 AND SMF116STF=0 AND SMF116_SEC2N > 0)
                    ASSIGN(SMF116_SEC2O)
        ELSE        ASSIGN(99999)
FLD: QMAC     DISP(0) LEN(48) OFFSET(QMAC_OFFSET)
                                  /*Message Manager Accounting Data*/
FLD: QMACID   LEN(2) DISP(0)      /*Control block identifier*/
COMP: QMACIDV = X'D414'           /*Control block identifier value*/
FLD: QMACLL   LEN(2) TYPE(BIN) DISP(2)         /*length of QMAC block*/
FLD: QMACEYEC LEN(4) DISP(4)      /*eyecatcher*/
FLD: QMACCPUT LEN(4) TYPE(B-SECS) DISP(8) DEC(2)      /*CPU time used*/
FLD: QMACPUTL LEN(4) TYPE(BIN) DISP(16)
                                 /*Put requests indexed by msg length*/
FLD: QMACPUTA LEN(4) TYPE(BIN) DISP(16)
                                  /*# puts for length 0 99 bytes*/
FLD: QMACPUTB LEN(4) TYPE(BIN) DISP(20)
                                  /*# puts for length 100 999 bytes*/
FLD: QMACPUTC LEN(4) TYPE(BIN) DISP(24)
                                  /*# puts for length 1000 9999 bytes*/
FLD: QMACPUTD LEN(4) TYPE(BIN) DISP(28)
                                  /*# puts for length > 10000 bytes*/
FLD: QMACGETL LEN(4) TYPE(BIN) DISP(32)
                                 /*Get requests indexed by msg length*/
FLD: QMACGETA LEN(4) TYPE(BIN) DISP(32)
                                  /*# gets for length 0 99 bytes*/
FLD: QMACGETB LEN(4) TYPE(BIN) DISP(36)
                                  /*# gets for length 100 999 bytes*/
FLD: QMACGETC LEN(4) TYPE(BIN) DISP(40)
                                  /*# gets for length 1000 9999 bytes*/
FLD: QMACGETD LEN(4) TYPE(BIN) DISP(44)
                                  /*# gets for length > 10000 bytes*/


*********************************************************************
**              IBM WebSphere MQ for z/OS                           *
**                                                                  *
**             TASK IDENTIFICATION SECTION                          *
**             PRESENT FOR SUBTYPES 1 AND 2                         *
**                                                                  *
*********************************************************************
***********************************************************************
**** WTID     DSECT ,                         Thread accounting block 
***********************************************************************

COMP: WTID_OFFSET =
        WHEN(SMF116RTY = 116 AND (SMF116STF = 1 OR 2)
                             AND SMF116_SEC1N > 0)
                    ASSIGN(SMF116_SEC1O)
        ELSE        ASSIGN(99999)
FLD: WTID     DISP(0) LEN(208) OFFSET(WTID_OFFSET)
                                  /*Thread accounting block*/
FLD: WTIDSHEX LEN(2) DISP(0)      /*Control block ID (XF700')*/
FLD: WTIDLEN  LEN(2) TYPE(BIN) DISP(2)                       /*Length*/
FLD: WTIDEYEC LEN(4) DISP(4)      /*Eyecatcher (C'WTID')*/
*                                                              
FLD: WTIDID   LEN(186) DISP(8)
FLD: WTIDATYP LEN(4) TYPE(BIN) DISP(8)       /*Task's connection type*/
*                                        0 - Internal task
*                                        1 - CICS Attach
*                                        2 - Batch Attach
*                                        3 - IMS Control region
*                                        4 - IMS MPP region
*                                        5 - Command Server
*                                        6 - Mover
*                                        7 - RRS Stub
*                                        8 - IGQ agent
FLD: WTIDCCN  LEN(8) DISP(12)     /*Connection name*/
FLD: WTIDOPID LEN(8) DISP(20)     /*Original primary authid*/
FLD: WTIDNID  LEN(16) DISP(28)    /*Network ID for RRS connections*/
FLD: WTIDCORI LEN(12) DISP(44)    /*Correlation ID*/
FLD: WTIDUOWI LEN(24) DISP(56)    /*Logical unit of work identifier*/
FLD: WTIDACCT LEN(22) DISP(80)    /*Accounting token*/
FLD: WTIDCHL  LEN(20) DISP(102)   /*Channel name for mover*/
FLD: WTIDCHLC LEN(48) DISP(122)   /*Long connection name for mover*/
FLD: WTIDCTXT LEN(16) DISP(170)   /*RRS current context token*/
FLD: WTIDTRAN LEN(8) DISP(186)    /*Primary authid*/
*                                                                       
FLD: WTIDCFWD LEN(4) TYPE(BIN) DISP(196)                   /*reserved*/
FLD: WTIDCBWD LEN(4) TYPE(BIN) DISP(200)                   /*reserved*/
FLD: WTIDWTAS LEN(4) TYPE(BIN) DISP(204)                   /*Reserved*/


***********************************************************************
**                                                                  *
**             THREAD ACCOUNTING BLOCK                              *
**             PRESENT FOR SUBTYPE 1                                *
**                                                                  *
***********************************************************************
***********************************************************************
**** WTAS     DSECT ,                         Thread accounting block
***********************************************************************

COMP: WTAS_OFFSET =
        WHEN(SMF116RTY = 116 AND SMF116STF = 1 AND SMF116_SEC2N > 0)
                    ASSIGN(SMF116_SEC2O)
        ELSE        ASSIGN(99999)
FLD: WTAS     DISP(0) LEN(2064) OFFSET(WTAS_OFFSET)
                                  /*Thread accounting block*/
FLD: WTASSHEX LEN(2) DISP(0)      /*Control block identifier*/
FLD: WTASLEN  LEN(2) TYPE(BIN) DISP(2)                       /*Length*/
FLD: WTASEYEC LEN(4) DISP(4)      /*Eyecatcher*/
*
FLD: WTASCORR LEN(16) DISP(8)     /*Correlator ID*/
FLD: WTASSTRT TYPE(STCKTIME) DISP(8)            /*When WTAS allocated*/
FLD: WTASHASH LEN(8) DISP(16)     /*Reserved*/
FLD: WTASMTHR LEN(4) TYPE(BIN) DISP(16)                    /*Reserved*/
FLD: WTASWTAS LEN(4) TYPE(BIN) DISP(20)                    /*Reserved*/
*
FLD: WTASLATC LEN(8) DISP(24)     /*Reserved*/
*
FLD: WTASHSHI LEN(4) TYPE(BIN) DISP(32)                    /*Reserved*/
FLD: WTASNEXT LEN(4) TYPE(BIN) DISP(36)                    /*Reserved*/
*
FLD: WTASFLAG LEN(4) TYPE(BIN) DISP(40)                    /*Reserved*/
*
FLD: WTASWQCT LEN(4) TYPE(BIN) DISP(44)      /*Count of WQSTAT blocks*/
*
FLD: WTASCLR  LEN(512) DISP(48)
FLD: WTASLWET TYPE(STCKTIME) DISP(48)        /*Latch elapse time wait*/
*
FLD: WTASLWN  LEN(4) TYPE(BIN) DISP(304)
                                  /*# of times waiting for latch*/
***********************************************************************
* The following fields are non-Queue 'other' stats                    *
***********************************************************************
FLD: WTASOTET TYPE(STCKTIME) DISP(432)     /*'Other' MQ Calls elapsed*/
FLD: WTASOTCT TYPE(STCKTIME) DISP(440)    /*'Other' MQ calls CPU time*/
FLD: WTASOTN  LEN(4) TYPE(BIN) DISP(448)    /*Number of 'Other' calls*/
FLD: WTASMLW  TYPE(STCKTIME) DISP(452)          /*Max latch wait time*/
FLD: WTASMLWN LEN(4) TYPE(BIN) DISP(460)      /*Max wait latch number*/
FLD: WTASLOWN LEN(8) DISP(464)    /*Address of longest latch*/
***********************************************************************
* Commit statistics                                                   *
***********************************************************************
FLD: WTASCMET TYPE(STCKTIME) DISP(472)          /*Commit elapsed time*/
FLD: WTASCMCT TYPE(STCKTIME) DISP(480)              /*Commit CPU time*/
FLD: WTASCMN  LEN(4) TYPE(BIN) DISP(488)     /*Commit number of calls*/
***********************************************************************
* Backout Statistics                                                  *
***********************************************************************
FLD: WTASBAET TYPE(STCKTIME) DISP(492)         /*Backout elapsed time*/
FLD: WTASBACT TYPE(STCKTIME) DISP(500)             /*Backout CPU time*/
FLD: WTASBAN  LEN(4) TYPE(BIN) DISP(508)    /*Backout number of calls*/

FLD: WTASJWET TYPE(STCKTIME) DISP(516)  /*Elapse time waiting for ALL*/
*                                        journal writes to complete
FLD: WTASJWN  LEN(4) TYPE(BIN) DISP(524)
                                  /*Total number of journal writes*/
FLD: WTASJWB  LEN(4) TYPE(BIN) DISP(528)    /*Number of bytes written*/
FLD: WTASJCET TYPE(STCKTIME) DISP(532)
                                  /*Elapsed time waiting for FORCE*/
*                                        journal writes to complete
FLD: WTASJCN  LEN(4) TYPE(BIN) DISP(540)
                                  /*Number of FORCE journal writes*/
FLD: WTASSUSN LEN(4) TYPE(BIN) DISP(544)    /*Number of task suspends*/
FLD: WTASSUSE TYPE(STCKTIME) DISP(548)           /*Total suspend time*/
***********************************************************************
***********************************************************************
FLD: WTASPSE0 TYPE(STCKTIME) DISP(556)      /*Elapse time logging PS0*/
FLD: WTASPSN0 LEN(4) TYPE(BIN) DISP(564)
                                  /*Number of logging request PS0*/
***********************************************************************
* DB2 manager                                                         *
***********************************************************************
FLD: WTASDBET TYPE(STCKTIME) DISP(568)            /*DB2 Elapse thread*/
FLD: WTASDBES TYPE(STCKTIME) DISP(576)            /*DB2 Elapse Server*/
FLD: WTASDBMT TYPE(STCKTIME) DISP(584)        /*DB2 max elapse thread*/
FLD: WTASDBMS TYPE(STCKTIME) DISP(592)        /*DB2 max elapse server*/
FLD: WTASDBCT LEN(4) TYPE(BIN) DISP(600)               /*DB2 requests*/
***********************************************************************
* CF manager                                                          *
***********************************************************************
FLD: WTASCSEC LEN(4) TYPE(BIN) DISP(604)    /*Number of IXLLSTE calls*/
FLD: WTASCMEC LEN(4) TYPE(BIN) DISP(608)    /*Number of IXLLSTM calls*/
FLD: WTASRSEC LEN(4) TYPE(BIN) DISP(612) /*Number of IXLLSTE redrives*/
FLD: WTASRMEC LEN(4) TYPE(BIN) DISP(616) /*Number of IXLLSTM redrives*/
FLD: WTASSSTC TYPE(STCKTIME) DISP(620)     /*Time spent IXLLSTE Calls*/
FLD: WTASMSTC TYPE(STCKTIME) DISP(628)     /*Time spent IXLLSTM calls*/
***********************************************************************
* CF manager SMDS activity V7.1                                       *
***********************************************************************
FLD: WTASSMRS LEN(4) TYPE(BIN) DISP(636)       /*Reads saved for SMDS*/
FLD: WTASSMRB LEN(4) TYPE(BIN) DISP(640)      /*Blocks read from SMDS*/
FLD: WTASSMWB LEN(4) TYPE(BIN) DISP(644)     /*Blocks written to SMDS*/
FLD: WTASSMRP LEN(4) TYPE(BIN) DISP(648)       /*Pages read from SMDS*/
FLD: WTASSMWP LEN(4) TYPE(BIN) DISP(652)      /*Pages written to SMDS*/
FLD: WTASSMWT TYPE(STCKTIME) DISP(656)       /*I/O wait time for SMDS*/

***********************************************************************
* Interval data, Page counts and Chain pointers                       *
***********************************************************************
FLD: WTASINTS TYPE(STCKTIME) DISP(664)               /*Interval start*/
FLD: WTASINTE TYPE(STCKTIME) DISP(672)                 /*Interval end*/
***********************************************************************
* Reserved                                                            *
***********************************************************************
FLD: WTASCQF  LEN(4) TYPE(BIN) DISP(680)                   /*Reserved*/
FLD: WTASCQB  LEN(4) TYPE(BIN) DISP(684)                   /*Reserved*/
FLD: WTASVER  LEN(4) TYPE(BIN) DISP(688)             /*Version number*/
FLD: WTASDBPT LEN(8) TYPE(BIN) DISP(696)
                                  /*DB2 number of bytes written*/

FLD: WTASDBGT LEN(8) TYPE(BIN) DISP(704)   /*DB2 number of bytes read*/
***********************************************************************
* Version 7 additions (WTAS_VER4 or higher)                           *
***********************************************************************
FLD: WTASPBHW LEN(8) TYPE(BIN) DISP(712)    /*Publish high water mark*/
FLD: WTASPBTT TYPE(STCKTIME) DISP(720)    /*Publish total elapse time*/
***********************************************************************
* MQOPEN/MQPUT1 resolving to topics                                   *
***********************************************************************
FLD: WTASTPET TYPE(STCKTIME) DISP(728)            /*Topic Elapse time*/
FLD: WTASTPCT TYPE(STCKTIME) DISP(736)               /*Topic CPU time*/
FLD: WTASTPN  LEN(4) TYPE(BIN) DISP(744)                /*Topic count*/
***********************************************************************
* MQSUB                                                               *
***********************************************************************
FLD: WTASSUET TYPE(STCKTIME) DISP(748)            /*MQSUB Elapse time*/
FLD: WTASSUCT TYPE(STCKTIME) DISP(756)               /*MQSUB CPU time*/
FLD: WTASSUN  LEN(4) TYPE(BIN) DISP(764)                /*MQSUB count*/
FLD: WTASSUSC LEN(4) TYPE(BIN) DISP(768)   /*MQSUB count of selectors*/
FLD: WTASSUSL LEN(4) TYPE(BIN) DISP(772)  /*MQSUB max length selector*/
***********************************************************************
* MQSUBRQ                                                             *
***********************************************************************
FLD: WTASSQET TYPE(STCKTIME) DISP(776)          /*MQSUBRQ Elapse time*/
FLD: WTASSQCT TYPE(STCKTIME) DISP(784)             /*MQSUBRQ CPU time*/
FLD: WTASSQN  LEN(4) TYPE(BIN) DISP(792)              /*MQSUBRQ count*/
***********************************************************************
* MQCTL                                                               *
***********************************************************************
FLD: WTASCTET TYPE(STCKTIME) DISP(796)            /*MQCTL Elapse time*/
FLD: WTASCTCT TYPE(STCKTIME) DISP(804)               /*MQCTL CPU time*/
FLD: WTASCTN  LEN(4) TYPE(BIN) DISP(812)                /*MQCTL count*/
***********************************************************************
* MQSTAT                                                              *
***********************************************************************
FLD: WTASSTET TYPE(STCKTIME) DISP(816)           /*MQSTAT Elapse time*/
FLD: WTASSTCT TYPE(STCKTIME) DISP(824)              /*MQSTAT CPU time*/
FLD: WTASSTN  LEN(4) TYPE(BIN) DISP(832)               /*MQSTAT count*/
FLD: WTASCTSR LEN(8) DISP(840)
***********************************************************************
* END                                                                 *
***********************************************************************

FLD: COMMITCF LEN(20) DISP(856)   /*See WTASCFSTAT DSECT*/
FLD: RESERVED1 LEN(20) DISP(1256)
FLD: RESERVED2 LEN(20) DISP(1656)
*


*********************************************************************
**               IBM WebSphere MQ for z/OS                          *
**                                                                  *
**                QUEUE ACCOUNTING BLOCK                            *
**             PRESENT FOR SUBTYPES 1 AND 2                         *
**                                                                  *
*********************************************************************
***********************************************************************
**** WQST     DSECT ,                      Queue accounting block
***********************************************************************

***********************************************************************
* TO REPORT ON ALL OCCURRENCES OF WQST, USE:
*    INPUT: SMF116
*           NORMWHEN(SMF116RTY = 116 AND (SMF116STF = 1 OR 2)
*                    AND WQST_NUM > 0)
*           NORMALIZE(WQST, WQST_NUM)
***********************************************************************
COMP: WQST_OFFSET =
        WHEN(SMF116RTY = 116 AND SMF116STF = 1 AND SMF116_SEC3N > 0)
                    ASSIGN(SMF116_SEC3O)
        WHEN(SMF116RTY = 116 AND SMF116STF = 2 AND SMF116_SEC2N > 0)
                    ASSIGN(SMF116_SEC2O)
        ELSE        ASSIGN(99999)
COMP: WQST_NUM =
        WHEN(SMF116RTY = 116 AND SMF116STF = 1)
                    ASSIGN(SMF116_SEC3N)
        WHEN(SMF116RTY = 116 AND SMF116STF = 2)
                    ASSIGN(SMF116_SEC2N)
        ELSE        ASSIGN(0)
FLD: WQST     DISP(0) LEN(2784) OFFSET(WQST_OFFSET)
                                  /*Queue accounting block*/
FLD: WQID     LEN(2) DISP(0)      /*Control block identifier*/
FLD: WQLL     LEN(2) TYPE(BIN) DISP(2)                       /*Length*/
COMP: WQ_LEN_1 = 576              /*Version 1*/
COMP: WQ_LEN_2 = 592              /*Version 2*/
COMP: WQ_LEN_3 = 608              /*Version 3*/
COMP: WQ_LEN_4 = 672              /*Version 4*/
COMP: WQ_LEN_5 = 704              /*Version 5*/
COMP: WQ_LEN_6 = 2752             /*Version 6 @D5A*/
FLD: WQEYE    LEN(0) DISP(4)      /*Eye catcher*/
FLD: WQVER    LEN(4) TYPE(BIN) DISP(4)               /*Version number*/
COMP: WQ_VER_1 = 1                /*Version 1*/
COMP: WQ_VER_2 = 2                /*Version 2*/
COMP: WQ_VER_3 = 3                /*Version 3*/
COMP: WQ_VER_4 = 4                /*Version 4*/
COMP: WQ_VER_5 = 5                /*Version 5*/
COMP: WQ_VER_6 = 6                /*Version 6 @D5A*/
FLD: WQNEXT   LEN(4) TYPE(BIN) DISP(8)                     /*Reserved*/
FLD: CORREL   LEN(16) DISP(12)    /*Block correlator*/
FLD: OBJNAME  LEN(48) DISP(28)    /*Object name*/
FLD: BASENAME LEN(48) DISP(76)    /*Object base name*/
FLD: OPENTIME TYPE(STCKTIME) DISP(124)            /*First MQOPEN time*/
FLD: CLOSTIME TYPE(STCKTIME) DISP(132)            /*Last MQCLOSE time*/
*
FLD: QTYPE    LEN(4) TYPE(BIN) DISP(140)              /*Type of queue*/
FLD: INDXTYPE LEN(4) TYPE(BIN) DISP(144)        /*Index type of queue*/
FLD: QSGDISP  LEN(4) DISP(148)    /*QSGDISP of queue*/
***********************************************************************
* OPEN                                                                *
***********************************************************************
FLD: OPENEYE  LEN(4) DISP(152)    /*Eye catcher 'OPEN'*/
FLD: OPENET   TYPE(STCKTIME) DISP(156)
                                  /*Total elapsed time for MQOPENs*/
FLD: OPENCT   TYPE(STCKTIME) DISP(164)   /*Total CPU time for MQOPENs*/
FLD: OPENN    LEN(4) TYPE(BIN) DISP(172)     /*Number of MQOPEN calls*/
***********************************************************************
* CLOSE                                                               *
***********************************************************************
FLD: CLOSEEYE LEN(4) DISP(176)    /*Eye catcher 'CLOS'*/
FLD: CLOSEET  TYPE(STCKTIME) DISP(180)
                                  /*Total elapsed time for MQCLOSEs*/
FLD: CLOSECT  TYPE(STCKTIME) DISP(188)  /*Total CPU time for MQCLOSEs*/
FLD: CLOSEN   LEN(4) TYPE(BIN) DISP(196)    /*Number of MQCLOSE calls*/
***********************************************************************
* GET                                                                 *
***********************************************************************

FLD: GETEYE   LEN(4) DISP(200)    /*Eyecatcher 'GET '*/
FLD: GETET    TYPE(STCKTIME) DISP(204)
                                  /*Total elapsed time for MQGETs*/
FLD: GETCT    TYPE(STCKTIME) DISP(212)    /*Total CPU time for MQGETs*/
FLD: GETN     LEN(4) TYPE(BIN) DISP(220)      /*Number of MQGET calls*/
*                                     Number of
FLD: GETBRWA  LEN(4) TYPE(BIN) DISP(224)          /*MQGET browses any*/
FLD: GETBRWS  LEN(4) TYPE(BIN) DISP(228)     /*MQGET browses specific*/
FLD: GETA     LEN(4) TYPE(BIN) DISP(232)      /*MQGET destructive any*/
FLD: GETS     LEN(4) TYPE(BIN) DISP(236) /*MQGET destructive specific*/
FLD: GETERR   LEN(4) TYPE(BIN) DISP(240)       /*unaccountable MQGETs*/
*
FLD: GETJWET  TYPE(STCKTIME) DISP(244) /*Elapsed time waiting for ALL*/
*                                     journal writes to complete
FLD: GETJWN   LEN(4) TYPE(BIN) DISP(252)   /*Number of journal writes*/
FLD: GETPSET  TYPE(STCKTIME) DISP(256)   /*Elapsed time waiting for a*/
FLD: GETSUSET TYPE(STCKTIME) DISP(264) /*Total elapsed time suspended*/
*                                        for MQGETs
FLD: GETSUSN  LEN(4) TYPE(BIN) DISP(272)  /*Number of times suspended*/
*                                        when doing MQGETs
FLD: GETSMSG  LEN(4) TYPE(BIN) DISP(276) /*Number of messages skipped*/
FLD: GETEXMSG LEN(4) TYPE(BIN) DISP(280) /*Number of expired messages*/

***********************************************************************
* PUT                                                                 *
***********************************************************************
FLD: PUTEYE   LEN(4) DISP(292)    /*Eyecatcher 'PUT '*/
FLD: PUTET    TYPE(STCKTIME) DISP(296)
                                  /*Total elapsed time for MQPUTs*/
FLD: PUTCT    TYPE(STCKTIME) DISP(304)    /*Total CPU time for MQPUTs*/
FLD: PUTN     LEN(4) TYPE(BIN) DISP(312)      /*Number of MQPUT calls*/
*                                     passed directly to waiting getter
FLD: PUTJWET  TYPE(STCKTIME) DISP(316) /*Elapsed time waiting for ALL*/
*                                     journal writes to complete
FLD: PUTJWN   LEN(4) TYPE(BIN) DISP(324)   /*Number of journal writes*/
FLD: PUTSUSET TYPE(STCKTIME) DISP(328) /*Total elapsed time suspended*/
*                                        for MQPUTs
FLD: PUTSUSN  LEN(4) TYPE(BIN) DISP(336)  /*Number of times suspended*/
FLD: PUTPSET  TYPE(STCKTIME) DISP(340)     /*Elapsed time waiting for*/

***********************************************************************
* PUT1                                                                *
***********************************************************************
FLD: PUT1EYE  LEN(4) DISP(348)    /*Eyecatcher 'PUT1'*/
FLD: PUT1ET   TYPE(STCKTIME) DISP(352)
                                  /*Total elapsed time for MQPUT1s*/
FLD: PUT1CT   TYPE(STCKTIME) DISP(360)   /*Total CPU time for MQPUT1s*/
FLD: PUT1N    LEN(4) TYPE(BIN) DISP(368)     /*Number of MQPUT1 calls*/
FLD: PUT1JWET TYPE(STCKTIME) DISP(372) /*Elapsed time waiting for ALL*/
*                                     journal writes to complete
FLD: PUT1JWN  LEN(4) TYPE(BIN) DISP(380)   /*Number of journal writes*/
FLD: PUT1SUSET TYPE(STCKTIME) DISP(384)
                                  /*Total elapsed time suspended*/
*                                        for MQPUT1s
FLD: PUT1SUSN LEN(4) TYPE(BIN) DISP(392)  /*Number of times suspended*/
FLD: PUT1PSET TYPE(STCKTIME) DISP(396)     /*Elapsed time waiting for*/

***********************************************************************
* INQ                                                                 *
***********************************************************************
FLD: INQEYE   LEN(4) DISP(404)    /*Eyecatcher 'INQ '*/
FLD: INQET    TYPE(STCKTIME) DISP(408)
                                  /*Total elapsed time for MQINQs*/
FLD: INQCT    TYPE(STCKTIME) DISP(416)    /*Total CPU time for MQINQs*/
FLD: INQN     LEN(4) TYPE(BIN) DISP(424)      /*Number of MQINQ calls*/
***********************************************************************
* SET                                                                 *
***********************************************************************
FLD: SETEYE   LEN(4) DISP(428)    /*Eyecatcher 'SET '*/
FLD: SETET    TYPE(STCKTIME) DISP(432)
                                  /*Total elapsed time for MQSETs*/
FLD: SETCT    TYPE(STCKTIME) DISP(440)    /*Total CPU time for MQSETs*/
FLD: SETN     LEN(4) TYPE(BIN) DISP(448)      /*Number of MQSET calls*/
FLD: SETJWET  TYPE(STCKTIME) DISP(452) /*Elapsed time waiting for ALL*/
*                                     journal writes to complete
FLD: SETJWN   LEN(4) TYPE(BIN) DISP(460)   /*Number of journal writes*/
***********************************************************************
* OTHER STATISTICS                                                    *
***********************************************************************
FLD: CFSTRUCNAME LEN(12) DISP(464)/*Name of CF structure*/
FLD: NBUFFPOOL LEN(4) TYPE(BIN) DISP(476)        /*Buffer pool number*/
*
* PUTBYTES/VALIDPUT = average message size put.                       *
* GETBYTES/VALIDGET = average size of message got.                    *
* Failed calls count in the totals above, but only successful         *
* calls get counted below.                                            *
*
FLD: PUTBYTES LEN(8) TYPE(BU) DISP(480)
                                  /*Total bytes put by MQQUT/MQPUT1*/
FLD: GETBYTES LEN(8) TYPE(BU) DISP(488)    /*Total bytes got by MQGET*/
FLD: VALIDPUT LEN(4) TYPE(BIN) DISP(496)
                                  /*Number of MQPUT/MQPUT1s with data*/
FLD: VALIDGET LEN(4) TYPE(BIN) DISP(500) /*Number of MQGETs with data*/
FLD: NGEN     LEN(4) TYPE(BIN) DISP(504)
                                  /*Number of generated messages*/
*
FLD: GETMAXMS LEN(4) TYPE(BU) DISP(508)    /*Get maximum message size*/
FLD: GETMINMS LEN(4) TYPE(BU) DISP(512)    /*Get minimum message size*/
FLD: PUTMAXMS LEN(4) TYPE(BU) DISP(516)    /*Put maximum message size*/
FLD: PUTMINMS LEN(4) TYPE(BU) DISP(520)    /*Put minimum message size*/
*
FLD: MAXLATNT TYPE(STCKTIME) DISP(524)
                                  /*Maximum time on queue of message*/
FLD: MINLATNT TYPE(STCKTIME) DISP(532)
                                  /*Minimum time on queue of message*/
FLD: TOTLATNT TYPE(STCKTIME) DISP(540)
                                  /*Total time on queue of messages*/
*
FLD: WQBACK   LEN(4) TYPE(BIN) DISP(548)                   /*Reserved*/
*
FLD: USE_COUNT LEN(4) TYPE(BU) DISP(552)
                                  /*Use: +1 for open, 1 for close*/
FLD: TOTAL_USE LEN(4) TYPE(BIN) DISP(556)     /*Total number of calls*/
*
***********************************************************************
* FOLLOWING FIELDS INCLUDED ONLY IF WQ_VER = WQ_VER_2 or higher       *
***********************************************************************
*                                     Number of persistent messages

FLD: GETPMSG  LEN(4) TYPE(BU) DISP(560)                /*got by MQGET*/
FLD: PUTPMSG  LEN(4) TYPE(BU) DISP(564)                /*put by MQPUT*/
FLD: PUT1PMSG LEN(4) TYPE(BU) DISP(568)               /*put by MQPUT1*/
*
FLD: MAXQDPTH LEN(4) TYPE(BU) DISP(572)
                                  /*Maximum encountered queue depth*/
FLD: FLAGS    LEN(2) DISP(576)    /*Flags @D1A*/
FLD: GETDVAL  LEN(4) TYPE(BIN) DISP(580)
                                  /*# of Successful destructive gets*/
FLD: GETJCET  TYPE(STCKTIME) DISP(584)
                                  /*Elapsed time waiting for FORCE*/
*                                     journal writes to complete
FLD: GETJCN   LEN(4) TYPE(BIN) DISP(592)
                                  /*Number of FORCE journal writes*/
FLD: PUTPWG   LEN(4) TYPE(BIN) DISP(596)
                                  /*Number of MQPUT calls where msg*/
FLD: PUTJCET  TYPE(STCKTIME) DISP(600)
                                  /*Elapsed time waiting for FORCE*/
*                                     journal writes to complete
FLD: PUTJCN   LEN(4) TYPE(BIN) DISP(608)
                                  /*Number of FORCE journal writes*/
FLD: PUT1PWG  LEN(4) TYPE(BIN) DISP(612)
                                  /*Number of MQPUT1 calls where msg*/
*                                     passed directly to waiting getter
FLD: PUT1JCET TYPE(STCKTIME) DISP(616)
                                  /*Elapsed time waiting for FORCE*/
*                                     journal writes to complete
FLD: PUT1JCN  LEN(4) TYPE(BIN) DISP(624)
                                  /*Number of FORCE journal writes*/
FLD: SETJCET  TYPE(STCKTIME) DISP(628)
                                  /*Elapsed time waiting for FORCE*/
*                                     journal writes to complete
FLD: SETJCN   LEN(4) TYPE(BIN) DISP(636)
                                  /*Number of FORCE journal writes*/
FLD: PUTDSQ   LEN(4) TYPE(BIN) DISP(640)    /*Puts direct to shared q*/
FLD: PUTIGQ   LEN(4) TYPE(BIN) DISP(644)    /*Puts direct to shared q*/
FLD: PUT1IGQ  LEN(4) TYPE(BIN) DISP(648)    /*Puts direct to shared q*/

***********************************************************************
* FOLLOWING FIELDS INCLUDED ONLY IF WQ_VER = WQ_VER_5 or higher       *
***********************************************************************
FLD: SELCOUNT LEN(4) TYPE(BU) DISP(656) /*Count of selection requests*/
FLD: SELMAXLN LEN(4) TYPE(BIN) DISP(660) /*Maximum length of selector*/
FLD: CBEYE    LEN(4) DISP(664)    /*Eyecatcher 'CB '*/
FLD: CBET     TYPE(STCKTIME) DISP(668) /*Total elapsed time for MQCBs*/
FLD: CBCT     TYPE(STCKTIME) DISP(676)     /*Total CPU time for MQCBs*/
FLD: CBN      LEN(4) TYPE(BU) DISP(684)      /*Count of MQCB requests*/
FLD: OPENSUET TYPE(STCKTIME) DISP(688)               /*] Suspend time*/
FLD: OPENSUN  LEN(4) TYPE(BU) DISP(696)             /*] Suspend count*/
FLD: CLOSESUET TYPE(STCKTIME) DISP(700)              /*] Suspend time*/
FLD: CLOSESUN LEN(4) TYPE(BU) DISP(708)             /*] Suspend count*/
FLD: OPENCF0  LEN(4) TYPE(BIN) DISP(712)    /*] number of calls no cf*/
FLD: CLOSECF0 LEN(4) TYPE(BIN) DISP(716)    /*] number of calls no cf*/

* Mapping of CFSTATS in arrays below
*CFN        DS  AL4        ] number of calls to module
*CFSYCN     DS  AL4        ] Number of synchronous calls
*CFSYCET    DS  AL4        ] Total elapsed time for
*                             sync CF call in microsecs
*CFASYCN    DS  AL4        ] Number of Asynchronous calls
*CFASYCET   DS  AL4        ] Total elapsed time for
*                             Async CF call in microsecs
FLD: OPENCFSTATS LEN(20) DISP(720)/*] array of 20 of 5 fullwords*/
FLD: CLOSECFSTATS LEN(20) DISP(1120)   /*] array of 20 of 5 fullwords*/
FLD: GETCFSTATS LEN(20) DISP(1520)/*] array of 20 of 5 fullwords*/
FLD: PUTCFSTATS LEN(20) DISP(1920)/*] array of 20 of 5 fullwords*/
FLD: PUT1CFSTATS LEN(20) DISP(2320)    /*] array of 20 of 5 fullwords*/
FLD: PUBLISHEDN LEN(4) TYPE(BIN) DISP(2720)
                                  /*] Number of publications made*/
FLD: RES1     LEN(4) DISP(2724)   /*] reserved*/

FLD: TOPICOPENSRB LEN(8) TYPE(BU) DISP(2736)
                                  /*] Topic open on SRB task*/
FLD: TOPICPUTSRB LEN(8) TYPE(BU) DISP(2744) /*] Topic Put on SRB task*/
FLD: TOPICPUT1SRB LEN(8) TYPE(BU) DISP(2752)
                                  /*] Topic Put1 on SRB task*/
FLD: TOPICCLOSESRB LEN(8) TYPE(BU) DISP(2760)
                                  /*] Topic Close on SRB task*/
*
*
***********************************************************************
* END OF WQSTAT                                                       *
***********************************************************************

***********************************************************************
**** CSQDQCST DSECT ,                   Chinit channel stats  Sub 10         
***********************************************************************

***********************************************************************
* TO REPORT ON ALL OCCURRENCES OF CSQDQCST, USE:
*    INPUT: SMF116
*           NORMWHEN(SMF116RTY = 116 AND SMF116STF = 10
*                   AND SMF116_SEC2N > 0)
*           NORMSMF(SMF116_SEC1O)
***********************************************************************
COMP: CSQDQCST_OFFSET =
        WHEN(SMF116RTY = 116 AND SMF116STF = 10 AND SMF116_SEC2N > 0)
                    ASSIGN(SMF116_SEC2O)
        ELSE        ASSIGN(99999)
FLD: CSQDQCST DISP(0) LEN(374) OFFSET(CSQDQCST_OFFSET)
                                  /*Chinit channel stats Sub 10*/
FLD: QCST     LEN(8) DISP(0)      /*Repeated once per channel*/
FLD: QCSTID   LEN(2) DISP(0)      /*Control block ID*/
COMP: QCSTIDV = X'E74A'           /*Control block ID value*/
FLD: QCSTLL   LEN(2) TYPE(BIN) DISP(2)      /*Length of control block*/
FLD: QCSTEYEC LEN(4) DISP(4)      /*Control block eyecatcher*/
FLD: QCSTCLTM TYPE(STCKTIME) DISP(8)
                                /*Channel status collected time(STCK)*/
FLD: QCSTCHNM LEN(20) DISP(16)    /*Channel name*/
FLD: QCSTCHDP LEN(1) DISP(36)    /*Channel disposition (see MQCHLD_*)*/
FLD: QCSTCHTY LEN(1) DISP(37)     /*Channel type (see MQCHT_*)*/
FLD: QCSTCHST LEN(1) DISP(38)     /*Channel state (see MQCHS_*)*/
FLD: QCSTSTCL LEN(1) DISP(39)     /*Setting of STATCHL (see MQMON_*)*/
FLD: QCSTCNNM LEN(48) DISP(40)    /*Connection name*/
FLD: QCSTSTRT TYPE(STCKTIME) DISP(88)       /*Channel start date&time*/
*                                  (STCK with lower word set to zero) 
FLD: QCSTLUDT TYPE(STCKTIME) DISP(96)        /*Channel stop date&time*/
*                                  (STCK with lower word set to zero) 
FLD: QCSTLMST TYPE(STCKTIME) DISP(104)           /*Last msg date&time*/
*                                  (STCK with lower word set to zero) 
FLD: QCSTCBSZ LEN(4) TYPE(BIN) DISP(112)         /*Channel batch size*/
FLD: QCSTNMSG LEN(4) TYPE(BIN) DISP(116) /*Num of msgs, or num of MQI*/
*                                  calls(for SVRCONN)                 
FLD: QCSTNPMG LEN(4) TYPE(BIN) DISP(120)     /*Num of persistent msgs*/
FLD: QCSTBATC LEN(4) TYPE(BIN) DISP(124)             /*Num of batches*/
FLD: QCSTFUBA LEN(4) TYPE(BIN) DISP(128)        /*Num of full batches*/
FLD: QCSTBFST LEN(4) TYPE(BIN) DISP(132)
                                  /*Num of transmission buf sent*/
FLD: QCSTBFRC LEN(4) TYPE(BIN) DISP(136)
                                  /*Num of transmission buf received*/
FLD: QCSTCSCV LEN(4) TYPE(BIN) DISP(140)
                                  /*Current shared conversation*/
FLD: QCSTNBYT LEN(8) TYPE(BIN) DISP(144)               /*Num of bytes*/
FLD: QCSTNPBY LEN(8) TYPE(BIN) DISP(152)
                                  /*Num of bytes in persistent msgs*/
FLD: QCSTBYST LEN(8) TYPE(BIN) DISP(160)          /*Num of bytes sent*/
FLD: QCSTBYRC LEN(8) TYPE(BIN) DISP(168)      /*Num of bytes received*/
FLD: QCSTCPRA LEN(4) TYPE(BIN) DISP(176)           /*Compression rate*/
FLD: QCSTETAV LEN(4) TYPE(BIN) DISP(180)
                                  /*Exit time average (microseconds)*/
FLD: QCSTETMN LEN(4) TYPE(BIN) DISP(184)
                                  /*Exit time min (microseconds)*/
FLD: QCSTETMX LEN(4) TYPE(BIN) DISP(188)
                                  /*Exit time max (microseconds)*/
FLD: QCSTETDT TYPE(STCKTIME) DISP(192)      /*Exit time max date&time*/
*                                  (STCK with lower word set to zero)   
FLD: QCSTDNRT LEN(4) TYPE(BIN) DISP(200)
                                 /*DNS resolution time (microseconds)*/
FLD: QCSTNTAV LEN(4) TYPE(BIN) DISP(204)
                                  /*Net time average (microseconds)*/
FLD: QCSTNTMN LEN(4) TYPE(BIN) DISP(208)
                                  /*Net time min (microseconds)*/
FLD: QCSTNTMX LEN(4) TYPE(BIN) DISP(212)
                                  /*Net time max (microseconds)*/
FLD: QCSTNTDT TYPE(STCKTIME) DISP(216)       /*Net time max date&time*/
*                                  (STCK with lower word set to zero)   
FLD: QCSTRQMN LEN(48) DISP(224)   /*Remote qmgr/app name*/
FLD: QCSTSLSN LEN(8) DISP(272)   /*SERIALNUMBER from SSLPEER (in hex)*/
FLD: QCSTSLCN LEN(16) DISP(280)   /*CN from SSLCERTI*/
FLD: QCSTSLCS LEN(4) TYPE(BIN) DISP(296)
                                /*SSL is used or not, if yes, the SSL*/
*                                  CipherSpec being used (in hex)       
FLD: QCSTPTRC LEN(4) TYPE(BIN) DISP(300)            /*Put retry count*/
FLD: QCSTQETC LEN(4) TYPE(BIN) DISP(304)          /*Xmitq empty count*/
FLD: QCSTCBIT LEN(4) TYPE(BIN) DISP(308)
                               /*Channel batch interval(milliseconds)*/
FLD: QCSTCBDL LEN(4) TYPE(BIN) DISP(312)
                                /*Channel batch data limit(kilobytes)*/
FLD: QCSTDSPN TYPE(HALF) DISP(316)/*Dispatcher number*/
                                                                       
FLD: QCT_SMF_DATA LEN(8) DISP(318)/*Dword alignment*/
*                                                                      
FLD: QCT_COMMON LEN(8) DISP(318)
FLD: QCTTSKN  LEN(4) TYPE(BIN) DISP(318)     /*Task number (TCB addr)*/
FLD: QCTREQN  LEN(4) TYPE(BIN) DISP(322)   /*Num of requests for task*/
FLD: QCTCPTM  TYPE(STCKTIME) DISP(326)                /*Busy CPU time*/
FLD: QCTELTM  TYPE(STCKTIME) DISP(334)                  /*Elapse time*/
FLD: QCTWTTM  TYPE(STCKTIME) DISP(342)            /*Wait elapsed time*/
FLD: QCT_COMMON_END LEN(8) DISP(350)
*                                                                      

                                                                      
FLD: SMF116_END LEN(1) OFFSET(0)

 


 

Sample Report from SMF 116 Subtype 1 Records
Showing CPU Time for MQGETs and MQPUT1s


The sample SMF report below was created with
Spectrum SMF Writer, the low-cost 4GL SMF report writer.

In this report, we read the SMF file and select just the type 116 subtype 1 Websphere MQ accounting statistics records. (See SMF 116 record layout.) We use all of the the multiply recurring WQST (Queue Statistics) sections from each SMF record to show queue statistics.

All of this with just a few lines of code!
Why not install a Spectrum SMF Writer trial right now and start making your own SMF reports!

These Spectrum SMF Writer Statements:

INPUT: SMF116
       NORMWHEN(SMF116RTY = 116 AND SMF116STF = 1 AND WQST_NUM > 0)
       NORMALIZE(WQST_SECTION, WQST_NUM)

INC: SMF116RTY = 116 AND SMF116STF = 1

COL: SMF116TME('LOG TIME')
     WTIDCCN('CONNECTION|NAME')
     OBJNAME('QUEUE|NAME' 20)
     BASENAME('BASE|QUEUE|NAME' 30)
     OPENTIME('QUEUE|OPEN|TIME' TPIC'99:99:99.99')
     CLOSTIME('QUEUE|CLOSE|TIME' TPIC'99:99:99.99')
     GETCT('CPU TIME|FOR|MQGETS''')
     PUT1CT('CPU TIME|FOR|MQPUT1''S')

TITLE: 'SMF 116 - WEBSPHERE MQ ACCOUNTING STATS'
TITLE: 'QUEUE CPU TIME FOR MQGET''S AND MQPUT1''S'

 

Produce This SMF Report:


                                              SMF 116 - WEBSPHERE MQ ACCOUNTING STATS
                                              QUEUE CPU TIME FOR MQGET'S AND MQPUT1'S

                                                          BASE                 QUEUE       QUEUE       CPU TIME        CPU TIME
             CONNECTION        QUEUE                     QUEUE                 OPEN        CLOSE          FOR             FOR
  LOG TIME      NAME            NAME                      NAME                 TIME        TIME         MQGETS'        MQPUT1'S
 ___________ __________ ____________________ ______________________________ ___________ ___________ _______________ _______________

 12:20:28.48  U0200021  MQGT.OTMA.QUEUE      MQGT.OTMA.QUEUE                16:20:28.09 16:20:28.43 00:00:00.000000 00:00:00.000000
 12:20:28.65  CICS3A1A  CICS.BRIDGE.REPLY.Z3 SYSTEM.CLUSTER.TRANSMIT.QUEUE  16:20:28.64 16:20:28.64 00:00:00.000000 00:00:00.000363
 12:20:28.65  CICS3A1A  CICS.BRIDGE.QUEUE    CICS.BRIDGE.QUEUE              16:20:28.50 16:20:28.66 00:00:00.000120 00:00:00.000000
 12:20:29.36  CICS3A1A  CICS.BRIDGE.REPLY.Z3 SYSTEM.CLUSTER.TRANSMIT.QUEUE  16:20:28.64 16:20:28.64 00:00:00.000000 00:00:00.000310
 12:20:29.36  CICS3A1A  CICS.BRIDGE.QUEUE    CICS.BRIDGE.QUEUE              16:20:28.49 16:20:28.66 00:00:00.000096 00:00:00.000000
 12:20:29.36  U0240087  DQMIPV6.CSQ1.REPLYQ  DQMIPV6.CSQ1.REPLYQ            16:20:28.89 16:20:29.36 00:00:00.009340 00:00:00.000000
 12:20:29.36  U0240087  DQMIPV6.CSQ2.TPN.QUE DQMIPV6.CSQ1.XMITQ             16:20:27.22 16:20:28.64 00:00:00.000000 00:00:00.000000
 12:20:29.80  CICS3A1A  CICS.BRIDGE.REPLY.Z3 SYSTEM.CLUSTER.TRANSMIT.QUEUE  16:20:29.80 16:20:29.80 00:00:00.000000 00:00:00.000328
 12:20:29.80  CICS3A1A  CICS.BRIDGE.QUEUE    CICS.BRIDGE.QUEUE              16:20:29.76 16:20:29.80 00:00:00.000116 00:00:00.000000
 12:20:30.09  CICS3A1A  CICS.BRIDGE.REPLY.Z3 SYSTEM.CLUSTER.TRANSMIT.QUEUE  16:20:30.09 16:20:30.09 00:00:00.000000 00:00:00.000416
 12:20:30.09  CICS3A1A  CICS.BRIDGE.QUEUE    CICS.BRIDGE.QUEUE              16:20:30.00 16:20:30.10 00:00:00.000112 00:00:00.000000
 12:20:30.12  U0200021  MQGT.OTMA.REPLYQ     MQGT.OTMA.REPLYQ               16:20:28.67 16:20:30.12 00:00:00.000241 00:00:00.000000
 12:20:30.34  CICS3A1A  CICS.BRIDGE.REPLY.Z3 SYSTEM.CLUSTER.TRANSMIT.QUEUE  16:20:30.34 16:20:30.34 00:00:00.000000 00:00:00.000346
 12:20:30.34  CICS3A1A  CICS.BRIDGE.QUEUE    CICS.BRIDGE.QUEUE              16:20:30.26 16:20:30.35 00:00:00.000103 00:00:00.000000
 12:20:30.50  U0200015  MQGT.OTMA.QUEUE      MQGT.OTMA.QUEUE                16:20:29.93 16:20:30.44 00:00:00.000000 00:00:00.000000
 12:20:30.52  CICS3A1A  CICS.BRIDGE.REPLY.Z3 SYSTEM.CLUSTER.TRANSMIT.QUEUE  16:20:30.52 16:20:30.52 00:00:00.000000 00:00:00.000410
 12:20:30.52  CICS3A1A  CICS.BRIDGE.QUEUE    CICS.BRIDGE.QUEUE              16:20:30.46 16:20:30.53 00:00:00.000141 00:00:00.000000
 12:20:30.61  CICS3A1A  CICS.BRIDGE.REPLY.Z3 SYSTEM.CLUSTER.TRANSMIT.QUEUE  16:20:30.61 16:20:30.61 00:00:00.000000 00:00:00.000373
 12:20:30.61  CICS3A1A  CICS.BRIDGE.QUEUE    CICS.BRIDGE.QUEUE              16:20:30.39 16:20:30.62 00:00:00.000091 00:00:00.000000
 12:20:30.81  U0200068  MQGT.OTMA.QUEUE      MQGT.OTMA.QUEUE                16:20:30.40 16:20:30.81 00:00:00.000000 00:00:00.000000
 12:20:30.87  CICS3A1A  CICS.BRIDGE.REPLY.Z3 SYSTEM.CLUSTER.TRANSMIT.QUEUE  16:20:30.86 16:20:30.86 00:00:00.000000 00:00:00.000362
 12:20:30.87  CICS3A1A  CICS.BRIDGE.QUEUE    CICS.BRIDGE.QUEUE              16:20:30.72 16:20:30.87 00:00:00.000130 00:00:00.000000
 12:20:31.19  CICS3A1A  CICS.BRIDGE.REPLY.Z3 SYSTEM.CLUSTER.TRANSMIT.QUEUE  16:20:31.20 16:20:31.20 00:00:00.000000 00:00:00.000406
 12:20:31.19  CICS3A1A  CICS.BRIDGE.QUEUE    CICS.BRIDGE.QUEUE              16:20:31.18 16:20:31.20 00:00:00.000090 00:00:00.000000
 12:20:31.25  U0240058  DQMIPV6.CSQ1.REPLYQ  DQMIPV6.CSQ1.REPLYQ            16:20:30.77 16:20:31.22 00:00:00.010303 00:00:00.000000
 12:20:31.25  U0240058  DQMIPV6.CSQ2.TPN.QUE DQMIPV6.CSQ1.XMITQ             16:20:29.52 16:20:30.62 00:00:00.000000 00:00:00.000000
 12:20:31.27  U0240073  DQMIPV6.CSQ1.REPLYQ  DQMIPV6.CSQ1.REPLYQ            16:20:31.06 16:20:31.27 00:00:00.004597 00:00:00.000000
 12:20:31.27  U0240073  DQMIPV6.CSQ2.TPN.QUE DQMIPV6.CSQ1.XMITQ             16:20:29.73 16:20:30.76 00:00:00.000000 00:00:00.000000
 12:20:31.39  U0240027  DQMIPV6.CSQ1.REPLYQ  DQMIPV6.CSQ1.REPLYQ            16:20:30.84 16:20:31.28 00:00:00.008269 00:00:00.000000
 12:20:31.39  U0240027  DQMIPV6.CSQ2.TPN.QUE DQMIPV6.CSQ1.XMITQ             16:20:29.40 16:20:30.64 00:00:00.000000 00:00:00.000000
 12:20:31.42  CICS3A1A  CICS.BRIDGE.REPLY.Z3 SYSTEM.CLUSTER.TRANSMIT.QUEUE  16:20:31.40 16:20:31.40 00:00:00.000000 00:00:00.000285
 12:20:31.42  CICS3A1A  CICS.BRIDGE.QUEUE    CICS.BRIDGE.QUEUE              16:20:31.14 16:20:31.41 00:00:00.000098 00:00:00.000000
 12:20:31.53  CICS3A1A  CICS.BRIDGE.REPLY.Z3 SYSTEM.CLUSTER.TRANSMIT.QUEUE  16:20:31.53 16:20:31.53 00:00:00.000000 00:00:00.000336
 12:20:31.53  CICS3A1A  CICS.BRIDGE.QUEUE    CICS.BRIDGE.QUEUE              16:20:31.51 16:20:31.54 00:00:00.000145 00:00:00.000000
 12:20:31.72  CICS3A1A  CICS.BRIDGE.REPLY.Z3 SYSTEM.CLUSTER.TRANSMIT.QUEUE  16:20:31.72 16:20:31.72 00:00:00.000000 00:00:00.000455
 12:20:31.72  CICS3A1A  CICS.BRIDGE.QUEUE    CICS.BRIDGE.QUEUE              16:20:31.70 16:20:31.72 00:00:00.000087 00:00:00.000000
 12:20:31.72  U0240039  DQMIPV6.CSQ1.REPLYQ  DQMIPV6.CSQ1.REPLYQ            16:20:31.56 16:20:31.66 00:00:00.002926 00:00:00.000000
 12:20:31.72  U0240039  DQMIPV6.CSQ2.TPN.QUE DQMIPV6.CSQ1.XMITQ             16:20:30.51 16:20:31.55 00:00:00.000000 00:00:00.000000
 12:20:31.82  CICS3A1A  CICS.BRIDGE.REPLY.Z3 SYSTEM.CLUSTER.TRANSMIT.QUEUE  16:20:31.80 16:20:31.80 00:00:00.000000 00:00:00.000403
 12:20:31.82  CICS3A1A  CICS.BRIDGE.QUEUE    CICS.BRIDGE.QUEUE              16:20:31.52 16:20:31.82 00:00:00.000119 00:00:00.000000
 12:20:31.82  CICS3A1A  CICS.BRIDGE.REPLY.Z3 SYSTEM.CLUSTER.TRANSMIT.QUEUE  16:20:31.81 16:20:31.81 00:00:00.000000 00:00:00.000328
 12:20:31.82  CICS3A1A  CICS.BRIDGE.QUEUE    CICS.BRIDGE.QUEUE              16:20:31.73 16:20:31.82 00:00:00.000099 00:00:00.000000
 12:20:31.99  CICS3A1A  CICS.BRIDGE.REPLY.Z3 SYSTEM.CLUSTER.TRANSMIT.QUEUE  16:20:31.99 16:20:31.99 00:00:00.000000 00:00:00.000321
 12:20:31.99  CICS3A1A  CICS.BRIDGE.QUEUE    CICS.BRIDGE.QUEUE              16:20:31.98 16:20:32.00 00:00:00.000094 00:00:00.000000
 12:20:32.23  CICS3A1A  CICS.BRIDGE.REPLY.Z3 SYSTEM.CLUSTER.TRANSMIT.QUEUE  16:20:32.22 16:20:32.22 00:00:00.000000 00:00:00.000422
 12:20:32.23  CICS3A1A  CICS.BRIDGE.QUEUE    CICS.BRIDGE.QUEUE              16:20:32.19 16:20:32.23 00:00:00.000104 00:00:00.000000

See other sample SMF reports.

Copyright 2024.
Pacific Systems Group.
All rights reserved.
Home | Products | Prices | Documentation | 30-Day Trials | Customer Reviews | Company | FAQ | Sample Reports | SMF Records
Send Your Comments or Questions