SMF log records for ODBM accounting

The SMF record that is reserved for ODBM accounting is type 29 (x'1D') with subtype of 1. The SMF log record consists of three main sections: the SMF header, the BPE header, and the ODBM accounting information - all contained in a single record instance.

The BPESMF29 macro contains the DSECTs for both the SMF type 29 and the BPE headers. Field smf29bhs in the SMF header contains the offset from the start of the SMF 29 record to the BPE header.

The CSLDSMF macro contains the DSECT for the ODBM accounting information (record subtype 1). Field smf29sts in the SMF header contains the offset from the start of the SMF 29 record to the ODBM accounting information section.

These tables show the breakdown of each section.

Table 1. SMF header (type 29) – BPESMF29 DSECT
Name Length Type Description
smf29len 2 binary Record length
smf29seg 2 binary Segment descriptor
smf29flg 1 binary System indicator flag:
  • x'80' – Reserved
  • x'40' – Subtype used
  • x'20' – Reserved
  • x'10' – MVS/SP version 4 and above
  • x'08' – MVS/SP version 3
  • x'04' – MVS/SP Version 2
  • x'02' – VS2
  • x'01' – Reserved
smf229rty 1 binary Record type (29 decimal or x'1D')
smf29tme 4 binary Time since midnight in hundredths of a second
smf29dte 4 packed Date (packed decimal) when the record was moved into the SMF buffer
smf29sid 4 EBCDIC System identification
smf29ssi 4 EBCDIC Subsystem identification
smf29sty 2 binary Record subtype
smf29trn 2 binary Number of triplets in this record
* 2   Reserved
smf29bhs 4 binary Offset to BPE header from start of record
smf29bhl 2 binary Length of BPE header
smf29bhn 2 binary Number of BPE header
smf29sts 4 binary Offset to subtype specific section from start of record
smf29stl 2 binary Length of subtype specific section
smf29stn 2 binary Number of subtype specific section
Table 2. BPE header – BPESMF29_BPEHDR DSECT (located at offset smf29bhs from the start of the record)
Name Length Type Description
smf29bh_fieldFlags 4 binary Field flags
smf29bh_asType 4 EBCDIC Address space type that wrote this record
smf29bh_jobName 8 EBCDIC Job or started task name
smf29bh_asName 8 EBCDIC
  1. IMSID (or DBCTL RSENAME) for batch/ IMS control region-associated address spaces (CTL, DLI, DBRC, DEP)
  2. BPE address space “system name” for BPE-managed address spaces
smf29bh_crType 1 binary Associated control region type:
  • x'00' – Not a control-region address space
  • x'01' – TM/DB IMS
  • x'02' – DBCTL IMS
  • x'03' – DCCTL IMS
  • x'04' – FDBR region
smf29bh_flag1 1 binary Flag byte:
  • x'80' – IMS or BPE address space registered as VUE
  • x'40' – Record written by IMS dependent region or DBCTL/ODBA thread
  • x'20' – Record written by IMS batch region
  • x'10' – IMS using IRLM
  • x'08' – IMS using DBRC
  • x'04' – IMS using shared queues
  • x'02' – IMS using CSL
  • x'01' – Reserved
* 2   Reserved
smf29bh_asVersion 3 EBCDIC Address space version number (binary)
smf29bh_bpeVersion 3 EBCDIC BPE version number or 0 (binary)
smf29bh_asid 2 binary ASID of the address space that wrote this record
* 4   Reserved
smf29bh_startStck 8 EBCDIC
  1. STCK value of IMS batch or control region start for batch and control region-associated address spaces (CTL, DLI, DBRC, DEP)
  2. STCK value at address space start for BPE-based address spaces
smf29bh_stck 8 EBCDIC Current STCK when this record was built
Table 3. ODBM accounting information subtype 1 – CSLDSMF DSECT (located at offset smf29sts from the start of the record)
Name Length Type Description
smf29sty1_pver 4 binary Version number
smf29sty1_func 4 binary Function number
smf29sty1_aliasName 4 EBCDIC Alias name (if available)
smf29sty1_plexName 8 EBCDIC IMSplex name
smf29sty1_psbName 8 EBCDIC PSB name (if available)
smf29sty1_apsbToken 16 EBCDIC APSB token
Note: This token correlates to the IMS user-defined token in the x'08' record.
smf29sty1_apsbSTCK 8 EBCDIC APSB STCK
smf29sty1_clientidlen 4 binary Client ID length
smf29sty1_clientidoff 4 binary Offset to client ID name from start of ODBM subtype record (if available)
smf29sty1_useridlen 4 binary User ID length
smf29sty1_useridoff 4 binary Offset to user ID name from start of ODBM subtype record (if available)
smf29sty1_racflen 4 binary RACF ID length
smf29sty1_racfoff 4 binary Offset to RACF ID name from start of ODBM subtype record (if available)
smf29sty1_UOWtime 8 EBCDIC Total UOW time (in STCK units)
smf29sty1_zIIPtime 8 EBCDIC Total zIIP time (in STCK units)
smf29sty1_numDLI 4 binary Total number of DLI calls
smf29sty1_numSQL 4 binary Total number of executable SQL commands