Programming Interface Information: This information is NOT intended to be used as Programming Interfaces of z/VM.

#### MDRREC

Prolog

Control Block Contents
MDRREC DSECT

Storage Layout

Cross Reference (Contains links to field and bit definitions)

#### MDRREC Prolog

     NAME       : MDRREC
     DESCRIPTION: MISCELLANEOUS DATA RECORD
     DSECT      : MDRREC
     FUNCTION   : PROVIDES DATA NEEDED FOR ERROR RECORDING
     LOCATED BY : N/A
     CREATED BY : HCPIOE, HCPPEN, HCPDRN, OR A GUEST.  COPIED TO
                  FREE STORAGE BY HCPVER.
     DELETED BY : HCPIOE AFTER HCPREC HAS COPIED IT INTO
                  A GSDBK.

#### MDRREC Control Block Content

#### MDRREC DSECT

    Hex   Dec Type/Val   Lng Label (dup)    Comments
    ---- ---- --------- ---- -------------- --------
    0000    0 Structure      MDRREC         MISCELLANEOUS DATA RECORD
         THIS CONTROL BLOCK IS AN INTER-OPERATING-SYSTEM BLOCK WHICH IS DEFINED
         BY IBM CORPORATE STANDARDS. THEREFORE VM/XA DOES NOT CONTROL THE
         DEFINITIONS NOR DOES IT NECESSARILY USE ALL THE FIELDS DEFINED OR ALL
         THE BITS DEFINED WITHIN A FIELD.
    0000    0 Bitstring    1 MDRRTYP        RECORD TYPE
              00000093       MDRRTCVT       147 CONVERTED MDR RECORD (NOT FOR
                                            VS)
              00000091       MDRRTMDR       145 MDR RECORD
              00000090       MDRRTSVC       144 MDR RECORD FORMATTED BY SVC
                                            91
    0001    1 Bitstring    1 MDROPSYS       OPERATING SYSTEM
              111. ....      HDRHSSYS       X'E0' SYSTEM MASK
              1... ....      HDRHSOS2       X'80' OS/VS2
              .11. ....      HDRHSVM        X'60' VM
              .1.. ....      HDRHSOS1       X'40' OS/VS1
              ..1. ....      HDRHSDOS       X'20' DOS
              ...1 1111      HDRHSLVL       X'1F' SYSTEM LEVEL MASK (INCLUDES
                                            VERSION AND RELEASE LEVEL)
              ...1 11..      HDRHSVRS       X'1C' VERSION NUMBER MASK
              .... ..11      HDRHSREL       X'03' RELEASE LEVEL MASK
    0002    2 Bitstring    1 MDRSW1         SWITCH BYTE 1
              1... ....      HDRHSWMR       X'80' MORE RECORDS FOLLOW
              .1.. ....      HDRHSWCI       X'40' TOD CLOCK INSTRUCTION
                                            ISSUED
              ..1. ....      HDRHSWRT       X'20' RECORD TRUNCATED
              ...1 ....      HDRHSWPK       X'10' 370/XA MODE
              .... 1...      HDRHSWTI       X'08' TIME MACRO ISSUED
              .... .1..      HDRHSWPS       X'04' ERROR WAS PASSED
                                            (REFLECTED) TO A GUEST
    0003    3 Bitstring    1 MDRSW2         SWITCH BYTE 2 *** ADDITIONAL
                                            CODES ARE DEFINED IN SDMMDR
              .1.. ....      MDRINCOM       X'40' RECORD INCOMPLETE
    0004    4 Bitstring    1 MDRSW3         SWITCH BYTE 3
              .1.. ....      MDR8809        X'40' IBM 8809
              ..1. ....      MDR3800S       X'20' IBM 3800 MODEL 3 / 8
              ...1 .1.1      MDR3705N       X'15' IBM 3705 (NCP MODE)
              ...1 ..11      MDR3277N       X'13' IBM 3277 (NCP MODE)
              ...1 ..1.      MDR23051       X'12' IBM 2305 MOD I
              ...1 ....      MDR32XX        X'10' IBM 3203, 3262, 3289
              .... 1111      MDRIGAR        X'0F' IBM IGAR DISKETTE
              .... 111.      MDR3850        X'0E' IBM 3850
              .... 11.1      MDR3895        X'0D' IBM 3895
              .... 11..      MDR3800        X'0C' IBM 3800 MOD I
              .... 1.11      MDR3277        X'0B' IBM 3277
              .... 1...      MDR2715        X'08' IBM 2715
              .... .111      MDR3168        X'07' IBM 3168
              .... .11.      MDR3670        X'06' IBM 3670
              .... .1.1      MDR3705        X'05' IBM 3705 (NON NCP-MODE)
              .... .1..      MDR3211        X'04' IBM 3211
              .... ..11      MDR32XXS       X'03' IBM 3277, 3286, 3284(NON
                                            NCP-MODE)
    0005    5 Bitstring    1 MDRBUFC        SWITCH BYTE 4
              1... ....      MDRSUBID       X'80' VARIABLE LENGTH SUB-ID
                                            FIELD USED
              1... 11..      MDRBUFCL       X'8C' CURRENT VALUE OF MDRBUFC
              .... 1111      MDRSBLNM       X'0F' SUB-ID FIELD LENGTH MASK
    0006    6 Bitstring    1 MDRRCNT        RECORD COUNT
              1111 ....      HDRRCSEQ       X'F0' RECORD SEQUENCE NUMBER MASK
              .... 1111      HDRRCPHY       X'0F' TOTAL NUM. OF PHYSICAL
                                            RECORDS IN LOGICAL RECORD BIT
                                            MASK
    0007    7 Bitstring    1 MDRCHPID       CHANNEL PATH ID
    0008    8 Dbl-Word     8 MDRTOD         TOD OF SYSTEM FAILURE
    0010   16 Dbl-Word     8 MDRCPUID       CPU ID
    0018   24 Bitstring    2 MDRCUA1        PRIMARY CUA ADDRESS
              0000001A       MDRLEN         *-MDRREC LENGTH OF FIXED LENGTH
                                            PORTION
    001A   26 Bitstring    1 MDRVARBL (0)   START OF VARIABLE LENGTH DATA
    001A   26 Bitstring    1 MDR32COR       CORRELATION COUNT
    001B   27 Bitstring    1 MDR32TYP       TYPE OF 3211/3203 RECORD
              00000001       MDR32TP1       1 UNIVERSAL CHARACTER SET
              00000002       MDR32TP2       2 FORMS CONTROL BUFFER
              00000003       MDR32TP3       3 PRINT LINE
              00000002       MDR32SBL       *-MDRVARBL LENGTH OF SUB-ID FIELD
    001C   28 Bitstring  256 MDR32UCS       UNIVERSAL CHARACTER SET
    011C  284 Bitstring  256 MDR32BUF       BUFFER
              0000021C       MDR32LN1       *-MDRREC SIZE IN BYTES
              00000044       MDR32SZ1       (*-MDRREC+7)/8 SIZE IN DOUBLE
                                            WORDS
    001A   26 Bitstring    1 *              CORRELATION COUNT
    001B   27 Bitstring    1 *              TYPE OF 3211/3203 RECORD
    001C   28 Bitstring  240 MDR03UCS       UNIVERSAL CHARACTER SET
    010C  268 Bitstring   64 MDR03DUC       DUALING & UNCOMPARABLE CHAR TABLE
              0000014C       MDR03LN1       *-MDRREC SIZE IN BYTES
              0000002A       MDR03SZ1       (*-MDRREC+7)/8 SIZE IN DOUBLE
                                            WORDS
    001A   26 Bitstring    1 *              CORRELATION COUNT
    001B   27 Bitstring    1 *              TYPE OF 3211/3203 RECORD
    001C   28 Bitstring  180 MDR32FCB       FORMS CONTROL BUFFER
              000000D0       MDR32LN2       *-MDRREC SIZE IN BYTES
              0000001A       MDR32SZ2       (*-MDRREC+7)/8 SIZE IN DOUBLE
                                            WORDS
    001A   26 Bitstring    1 *              CORRELATION COUNT
    001B   27 Bitstring    1 *              TYPE OF 3211/3203 RECORD
    001C   28 Bitstring  256 MDR03FCB       FORMS CONTROL BUFFER
              0000011C       MDR03LN2       *-MDRREC SIZE IN BYTES
              00000024       MDR03SZ2       (*-MDRREC+7)/8 SIZE IN DOUBLE
                                            WORDS
    001A   26 Bitstring    1 *              CORRELATION COUNT
    001B   27 Bitstring    1 *              TYPE OF 3211/3203 RECORD
    001C   28 Bitstring  150 MDR32PRT       PRINT LINE BUFFER
    00B2  178 Bitstring   10 MDR32ERR       FIRST 10 ERROR CHARACTERS
              000000BC       MDR32LN3       *-MDRREC SIZE IN BYTES
              00000018       MDR32SZ3       (*-MDRREC+7)/8 SIZE IN DOUBLE
                                            WORDS
    001A   26 Bitstring    2 *              RESERVED FOR FUTURE IBM USE
              00000002       MDR38SBL       *-MDRVARBL LENGTH OF SUB-ID FIELD
    001C   28 Bitstring  136 MDR38DAT       3800 MODEL 1 DATA
              000000A4       MDR38LEN       *-MDRREC SIZE IN BYTES
              00000015       MDR38SIZ       (*-MDRREC+7)/8 SIZE IN DOUBLE
                                            WORDS
    001A   26 Bitstring    2 *              RESERVED FOR FUTURE IBM USE
              00000002       MDR38SB3       *-MDRVARBL LENGTH OF SUB-ID FIELD
    001C   28 Bitstring  264 MDR38DA3       3800 MODEL 3 DATA
              00000124       MDR38LE3       *-MDRREC SIZE IN BYTES
              00000025       MDR38SI3       (*-MDRREC+7)/8 SIZE IN DOUBLE
                                            WORDS
    0008    8 Signed       4 MDRHDATE       SYSTEM DATE OF FAILURE
    000C   12 Signed       4 MDRHTIME       SYSTEM TIME OF FAILURE
    0010   16 Bitstring    1 MDRHCPID       MACHINE VERSION CODE
    0011   17 Bitstring    3 MDRHSER        CPU SERIAL NUMBER
    0014   20 Bitstring    2 MDRHMDL        CPU MACHINE MODEL NUMBER
    0016   22 Bitstring    2 MDRHMCEL       MAX LENGTH OF MACHINE-DEPENDENT
                                            MACHINE CHECK EXTENDED LOGOUT

#### MDRREC Storage Layout

    *** MDRREC - MISCELLANEOUS DATA RECORD
    *
    *     +------+------+------+------+------+------+------+------+
    *   0 |:RTYP |:OPSYS|MDRSW1|MDRSW2|MDRSW3|:BUFC |:RCNT |:CHPID|
    *     +------+------+------+------+------+------+------+------+
    *   8 |                        MDRTOD                         |
    *     +-------------------------------------------------------+
    *  10 |                       MDRCPUID                        |
    *     +-------------+-----------------------------------------+
    *  18 |  MDRCUA1    |
    *     +-------------+
    *
    *** MDRREC - MISCELLANEOUS DATA RECORD

    *** Overlay for MDRVARBL in MDRREC
    *
    *                   +------+------+---------------------------+
    *  18 ...        1A |:32COR|:32TYP|                           |
    *     +-------------+------+------+                           |
    *  20 |                                                       |
    *     =                       MDR32UCS                        =
    *     |                           +---------------------------+
    *     |                           |                           |
    *     +---------------------------+                           |
    * 120 |                                                       |
    *     =                       MDR32BUF                        =
    *     |                           +---------------------------+
    *     |                           | 21C
    *     +---------------------------+
    *
    *** Overlay for MDRVARBL in MDRREC

    *** Overlay for MDRVARBL in MDRREC
    *
    *                   +------+------+---------------------------+
    *  18 ...        1A |//////|//////|                           |
    *     +-------------+------+------+                           |
    *  20 |                                                       |
    *     =                       MDR03UCS                        =
    *     |                           +---------------------------+
    *     |                           |                           |
    *     +---------------------------+                           |
    * 110 |                                                       |
    *     =                       MDR03DUC                        =
    *     |                           +---------------------------+
    *     |                           | 14C
    *     +---------------------------+
    *
    *** Overlay for MDRVARBL in MDRREC

    *** Overlay for MDRVARBL in MDRREC
    *
    *                   +------+------+---------------------------+
    *  18 ...        1A |//////|//////|                           |
    *     +-------------+------+------+                           |
    *  20 |                                                       |
    *     =                       MDR32FCB                        =
    *     |                                                       |
    *     +-------------------------------------------------------+
    *  D0
    *
    *** Overlay for MDRVARBL in MDRREC

    *** Overlay for MDRVARBL in MDRREC
    *
    *                   +------+------+---------------------------+
    *  18 ...        1A |//////|//////|                           |
    *     +-------------+------+------+                           |
    *  20 |                                                       |
    *     =                       MDR03FCB                        =
    *     |                           +---------------------------+
    *     |                           | 11C
    *     +---------------------------+
    *
    *** Overlay for MDRVARBL in MDRREC

    *** Overlay for MDRVARBL in MDRREC
    *
    *                   +------+------+---------------------------+
    *  18 ...        1A |//////|//////|                           |
    *     +-------------+------+------+                           |
    *  20 |                                                       |
    *     =                       MDR32PRT                        =
    *     |             +-----------------------------------------+
    *  B0 |             |                MDR32ERR                 |
    *     +-------------+             +---------------------------+
    *     |                           | BC
    *     +---------------------------+
    *
    *** Overlay for MDRVARBL in MDRREC

    *** Overlay for MDRVARBL in MDRREC
    *
    *                   +-------------+---------------------------+
    *  18 ...        1A |/////////////|                           |
    *     +-------------+-------------+                           |
    *  20 |                                                       |
    *     =                       MDR38DAT                        =
    *     |                           +---------------------------+
    *     |                           | A4
    *     +---------------------------+
    *
    *** Overlay for MDRVARBL in MDRREC

    *** Overlay for MDRVARBL in MDRREC
    *
    *                   +-------------+---------------------------+
    *  18 ...        1A |/////////////|                           |
    *     +-------------+-------------+                           |
    *  20 |                                                       |
    *     =                       MDR38DA3                        =
    *     |                           +---------------------------+
    *     |                           | 124
    *     +---------------------------+
    *
    *** Overlay for MDRVARBL in MDRREC

    *** Overlay for MDRTOD in MDRREC
    *
    *     +---------------------------+---------------------------+
    *   8 |         MDRHDATE          |         MDRHTIME          |
    *     +---------------------------+---------------------------+
    *  10
    *
    *** Overlay for MDRTOD in MDRREC

    *** Overlay for MDRCPUID in MDRREC
    *
    *     +------+--------------------+-------------+-------------+
    *  10 |:HCPID|      MDRHSER       |  MDRHMDL    |  MDRHMCEL   |
    *     +------+--------------------+-------------+-------------+
    *  18
    *
    *** Overlay for MDRCPUID in MDRREC

#### MDRREC Cross Reference

    Symbol         Dspl Value
    -------------- ---- -----
    HDRHSDOS       0001 20
    HDRHSLVL       0001 1F
    HDRHSOS1       0001 40
    HDRHSOS2       0001 80
    HDRHSREL       0001 03
    HDRHSSYS       0001 E0
    HDRHSVM        0001 60
    HDRHSVRS       0001 1C
    HDRHSWCI       0002 40
    HDRHSWMR       0002 80
    HDRHSWPK       0002 10
    HDRHSWPS       0002 04
    HDRHSWRT       0002 20
    HDRHSWTI       0002 08
    HDRRCPHY       0006 0F
    HDRRCSEQ       0006 F0
    MDRBUFC        0005
    MDRBUFCL       0005 8C
    MDRCHPID       0007
    MDRCPUID       0010
    MDRCUA1        0018
    MDRHCPID       0010
    MDRHDATE       0008
    MDRHMCEL       0016
    MDRHMDL        0014
    MDRHSER        0011
    MDRHTIME       000C
    MDRIGAR        0004 0F
    MDRINCOM       0003 40
    MDRLEN         0018 0000001A
    MDROPSYS       0001
    MDRRCNT        0006
    MDRRTCVT       0000 00000093
    MDRRTMDR       0000 00000091
    MDRRTSVC       0000 00000090
    MDRRTYP        0000
    MDRSBLNM       0005 0F
    MDRSUBID       0005 80
    MDRSW1         0002
    MDRSW2         0003
    MDRSW3         0004
    MDRTOD         0008
    MDRVARBL       001A
    MDR03DUC       010C
    MDR03FCB       001C
    MDR03LN1       010C 0000014C
    MDR03LN2       001C 0000011C
    MDR03SZ1       010C 0000002A
    MDR03SZ2       001C 00000024
    MDR03UCS       001C
    MDR23051       0004 12
    MDR2715        0004 08
    MDR3168        0004 07
    MDR32BUF       011C
    MDR32COR       001A
    MDR32ERR       00B2
    MDR32FCB       001C
    MDR32LN1       011C 0000021C
    MDR32LN2       001C 000000D0
    MDR32LN3       00B2 000000BC
    MDR32PRT       001C
    MDR32SBL       001B 00000002
    MDR32SZ1       011C 00000044
    MDR32SZ2       001C 0000001A
    MDR32SZ3       00B2 00000018
    MDR32TP1       001B 00000001
    MDR32TP2       001B 00000002
    MDR32TP3       001B 00000003
    MDR32TYP       001B
    MDR32UCS       001C
    MDR32XX        0004 10
    MDR32XXS       0004 03
    MDR3211        0004 04
    MDR3277        0004 0B
    MDR3277N       0004 13
    MDR3670        0004 06
    MDR3705        0004 05
    MDR3705N       0004 15
    MDR38DAT       001C
    MDR38DA3       001C
    MDR38LEN       001C 000000A4
    MDR38LE3       001C 00000124
    MDR38SBL       001A 00000002
    MDR38SB3       001A 00000002
    MDR38SIZ       001C 00000015
    MDR38SI3       001C 00000025
    MDR3800        0004 0C
    MDR3800S       0004 20
    MDR3850        0004 0E
    MDR3895        0004 0D
    MDR8809        0004 40

This information is based on z/VM V4R3.0. Last updated on 1 May 2002 at 11:13:05 EDT.
Copyright IBM Corporation, 1990, 2002