Common IBM MQ SMF header

Use this topic as a reference to the common IBM MQ SMF header type accounting record.

The format of this record is described in Table 1 and in assembler macros thlqual.SCSQMACS(CSQDQWHS) and thlqual.SCSQMACS(CSQDQWHC), and C header file thlqual.SCSQC370(CSQDSMFC). The field names in C are all in lowercase, for example qwhs, qwhsnsda.

Details of the structures and fields can be found in IBM MQ supportpac MP1B.

The QWHS data includes the subsystem name. For subtype 1 records, it also shows whether there are queue-level accounting records present. If the QWHSNSDA field is 3 or less, there are not, and the corresponding self-defining section (at offset X'34') is not set.

The QWHC data gives you information about the user (for example, the user ID (QWHCAID) and the type of application (QWHCATYP)). The QWHC section is completed only for subtype 0 records. The equivalent information is present in the thread identification record for subtype 1 and 2 records.

Table 1. Structure of the common IBM MQ SMF header record QWHS
Offset: Dec Offset: Hex Type Length Name Description
0 0 Structure 128 QWHS  
0 0   6   Reserved
6 6 Character 1 QWHSNSDA Number of self defining sections in the SMF records
7 7   5   Reserved
12 C Character 4 QWHSSSID Subsystem name
16 10   24   Reserved
40 28 Character 8 QWHCAID User ID associated with the z/OSĀ® job
48 30 Character 12 QWHCCV Thread cross-reference
60 3C Character 8 QWHCCN Connection name
68 44   8   Reserved
76 4C Character 8 QWHCOPID User ID associated with the transaction
84 54 Integer 4 QWHCATYP Type of connecting system (1=CICSĀ®, 2=Batch or TSO, 3=IMS control region, 4=IMS MPP or BMP, 5=Command server, 6=Channel initiator, 7=RRS Batch)
88 58 Character 22 QWHCTOKN Accounting token set to the z/OS accounting information for the user
110 6E Character 16 QWHCNID Network identifier
126 7E   2   Reserved