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

#### SZWRS

Prolog

Control Block Contents
SZWRS DSECT

Storage Layout

Cross Reference (Contains links to field and bit definitions)

#### SZWRS Prolog

     Name       : HCPSZWRS
     Description: SCSI Container Write same control block
     DSECT      : SZWRS
     Function   : The SCSI container has a IOSC write same function
                  and this control block is the assembler version
                  of the C writeSameReq_iosct structure.
                  Make sure this control block is updated whenever
                  the C structure is updated.
                  CAUTION: The DIGNUS C compiler aligns all LONG
                  definitions on 64 bit boundaries.  Care must be
                  taken to account for the alignment in this DSECT.
     Created by : HCPDGB for Diag A4 type=format
                  - HCPSZBWT for calls from FBA emulation
     Deleted by : HCPDGB
                  - HCPSZBWT
     Comments   : None

#### SZWRS Control Block Content

#### SZWRS DSECT

    Hex   Dec Type/Val   Lng Label (dup)    Comments
    ---- ---- --------- ---- -------------- --------
    0000    0 Structure      SZWRS          SCSI Container Write same control block
    0000    0 Bitstring    1 SZWVER         Version number
    0001    1 Bitstring    3 *              Reserved
    0004    4 Bitstring   16 SZWDEVRF       Devref of disk to format
    0014   20 Bitstring   16 *              Reserved for z/OS
    0024   36 Bitstring    4 *              Reserved
    0028   40 Dbl-Word     8 SZWSTBLK       Starting block number
    0030   48 Dbl-Word     8 SZWNUMBK       Number of blocks to format
    0038   56 Address      8 SZWDATA        Ptr to 512 data block or 0
    0040   64 Signed       4 SZWBLKZ        Size of block to be written to
                                            all blocks. 512 is only valid
                                            value.
    0044   68 Bitstring    1 SZWBERR        B_ERROR output
    0045   69 Bitstring    3 *              Reserved
    0048   72 Bitstring   32 SZWXMEM        Xmem structure
    0068  104 Dbl-Word     8 SZWCLCK (2)    Timestamp
    0078  120 Signed       4 SZWSTCD        SCSI status code
    007C  124 Signed       4 SZWRETC        Container return code
    0080  128 Signed       4 SZWRSN         Container reason code
    0084  132 Signed       4 SZWERRID       Container error id
    0088  136 Character   80 *              Reserved
              0000001B       SZWSIZE        (*-SZWRS+7)/8 SZWRS size in DW's
              000000D8       SZWBSIZ        *-SZWRS SZWRS size in bytes

#### SZWRS Storage Layout

    *** SZWRS - SCSI Container Write same control block
    *
    *     +------+--------------------+---------------------------+
    *   0 |SZWVER|////////////////////|                           |
    *     +------+--------------------+                           |
    *     |                       SZWDEVRF                        |
    *     |                           +---------------------------+
    *  10 |                           |///////////////////////////|
    *     +---------------------------+///////////////////////////|
    *     |///////////////////////////////////////////////////////|
    *     |///////////////////////////+---------------------------+
    *  20 |///////////////////////////|///////////////////////////|
    *     +---------------------------+---------------------------+
    *  28 |                       SZWSTBLK                        |
    *     +-------------------------------------------------------+
    *  30 |                       SZWNUMBK                        |
    *     +-------------------------------------------------------+
    *  38 |                       SZWDATA                         |
    *     +---------------------------+------+--------------------+
    *  40 |         SZWBLKZ           |:BERR |////////////////////|
    *     +---------------------------+------+--------------------+
    *  48 |                                                       |
    *     =                       SZWXMEM                         =
    *     |                                                       |
    *     +-------------------------------------------------------+
    *  68 |                       SZWCLCK                         |
    *     |                                                       |
    *     +---------------------------+---------------------------+
    *  78 |         SZWSTCD           |         SZWRETC           |
    *     +---------------------------+---------------------------+
    *  80 |          SZWRSN           |         SZWERRID          |
    *     +---------------------------+---------------------------+
    *  88 |///////////////////////////////////////////////////////|
    *     =///////////////////////////////////////////////////////=
    *     |///////////////////////////////////////////////////////|
    *     +-------------------------------------------------------+
    *  D8
    *
    *** SZWRS - SCSI Container Write same control block

#### SZWRS Cross Reference

    Symbol         Dspl Value
    -------------- ---- -----
    SZWBERR        0044
    SZWBLKZ        0040
    SZWBSIZ        0088 000000D8
    SZWCLCK        0068
    SZWDATA        0038
    SZWDEVRF       0004
    SZWERRID       0084
    SZWNUMBK       0030
    SZWRETC        007C
    SZWRSN         0080
    SZWSIZE        0088 0000001B
    SZWSTBLK       0028
    SZWSTCD        0078
    SZWVER         0000
    SZWXMEM        0048

This information is based on z/VM V6R1.0. Last updated on 18 Feb 2010 at 09:15:55 EDT.
Copyright IBM Corporation, 1990, 2008