{
{ CML$5680_11_FAILURE_DATA
{
{
{ PURPOSE:
{    The purpose of this statistic is to record the failure data
{ captured by the system when accessing a CCC Cyber Cartridge Tape
{ Subsystem ($5680_11).
{
{ FREQUENCY: At each failure occurrence.
{
{ CONTENT:
{    The  descriptive-data portion of this statistic contains:
{
{     <mf>.<iou>.<pp>.<channel>.<eq>.<unit>*<vsn>*<severity>..
{       *<symptom>
{
{      where <mf> is the identification of the mainframe in the form
{        $SYSTEM_mmmm_ssss.  Where 'mmmm' is the model number of
{        Central Processor zero (CP0), e.g. 0990, and 'ssss' is the
{        serial number of that processor, e.g. 0104.
{
{      where  <iou>  is  the  string  'IOUn' where n is 0 or 1.
{        This identifies the IOU associated with the channel over
{        which the failure was reported.
{
{      where <pp> is the string 'PPn' or 'CPPn' where n is the
{       logical PP number in decimal of the PP used to process the
{       failing request.
{
{      where <channel> is the string 'CHn' or 'CCHn' where n is the
{       channel number in decimal through which the tape device was
{       accessed.
{
{      where <eq> is the element name of the $5680_11 used in the
{        failing request.
{
{      where  <unit> is the element name of the failing tape storage
{        device used in the failing request.
{
{      where <vsn> is the external-vsn of the tape volume which  was
{        the object of the failing request.
{
{      where <severity> is the string 'UF'  for  unrecovered or 'RF'
{        for recovered message.
{
{      where <symptom> is the symptom/action statement  provided  by
{        the system.
{
{    The  counter-value portion of this statistic contains:
{
{    1.  Logical PP number
{        Bits 46 thru 51 contain the IOU number of the PP.
{        Bit 57 = 0 implies that the PP is an NIO PP.
{        Bit 57 = 1 implies that the PP is an I4 concurrent (CIO) PP.
{        Bits 58 thru 63 contain the logical PP number.
{    2.  Channel Number of channel coupler
{        Bits 0 thru 15 contain the initial C170/DMA channel Error
{         Status Register (only valid if bit 57 = 1).
{        Bits 16 thru 31 contain the final C170/DMA channel Error
{         Status Register (only valid if bit 57 = 1).
{        Bits 46 thru 51 contain the IOU number of the channel.
{        Bit 57 = 0 implies that the channel is an NIO channel
{        Bit 57 = 1 implies that the channel is an I4 concurrent
{         (CIO) channel.
{        Bits 58 thru 63 contain the channel number.
{    3.  Equipment Number of the $5680_11
{    4.  Physical Unit Number
{    5.  Unit-type
{       10 - $5682_12 or $5682_14
{    6.  Logical Operation Code
{       0 - none (unsolicited response from PP)
{       1 - read
{       2 - write
{       3 - rewind
{       4 - unload
{       5 - locate_block
{       6 - write_tapemark
{       7 - erase
{       8 - forespace_record
{       9 - backspace_record
{       10 - forespace_tapemark(s)
{       11 - backspace_tapemark(s)
{       12 - get_status
{    7.  Failure Severity
{       0 - Recovered Failure
{       1 - Unrecovered Failure
{    8.  Failure Symptom Code (tells what the system thinks is wrong)
{
{       1 - INDETERMINATE - The error did not manifest into one of the
{                           following symptom codes.
{
{       2 - INPUT CHANNEL PARITY - On an input from controller to PP
{                                  the channel-error-flag was set.
{
{       3 - OUTPUT CHANNEL PARITY - On an output from the PP to the controller,
{                                   the controller reported a parity error in
{                                   detailed status but the channel-error-flag
{                                   was not set.
{
{       4 - COUPLER FAILURE - An error has been detected in the CCC.
{                             Refer to detailed status for further
{                             information.
{
{       5 - CONTROL UNIT FAILURE - An error has been detected in the
{                                  Control Unit.  Refer to sense byte
{                                  3 (ERPA code) for further information.
{
{       6 - UNIT FAILURE - The drive is offline or a unit check has
{                          occurred.  Refer to detailed status for
{                          for further information.
{
{       7 - UNIT NOT READY - The unit does not have a tape loaded or the
{                            unit has dropped ready during a motion
{                            function.
{
{       8 - FUNCTION TIMEOUT - The channel coupler is not responding
{                              to functions.
{
{       9 - TAPE MEDIUM FAILURE - This indicates a defect was present
{                                 on the tape media.
{
{      10 - IOU OUTPUT PARITY - On an output from PP to controller
{                               both the channel-error-flag and the controller's
{                               detailed status indicated a parity error had
{                               occurred.
{
{      11 - INDETERMINATE OUTPUT PARITY - On an output from PP to controller
{                                         the channel-error-flag was set but there
{                                         was no parity error reported by the
{                                         controller.
{
{      12 - UNABLE TO WRITE ID MARK - The id-mark could not be written
{                                     at load point.
{
{      13 - UNABLE TO READ ID MARK - The drive was not capable of reading the
{                                    density mark at loadpoint.
{
{      14 - HARDWARE CORRECTIONS - The reported hardware status indicated that On-The-Fly
{                                  read or write corrections were made while the tape file
{                                  was active or that hardware controlled read or write error
{                                  recovery occurred.  This symptom code indicates a count is
{                                  present in some or all of counter words 11, 12, 15, 16 and 34.
{                                  In most cases, this symptom code is the ONLY way to know
{                                  if read/write recovered errors occurred on a cartridge.
{                                  This symptom code is always logged as an *RF* message.
{                                  The status counter words (21 - 32) are zero when this
{                                  symptom code is issued.
{
{      15 - MICROCODE LOAD ERROR - An error occurred when the PP attempted to load
{                                  the CCC microcode.  Refer to General Status for
{                                  the specific error.  Possible values of general status
{                                  are (in octal):
{                                     5xxx - where xxx is adapter error code (refer to
{                                            MB468 microcode ERS.
{                                     7777 - Autoload function timeout.
{                                     7776 - Output channel error flag set.
{                                     7775 - Input channel error flag set.
{                                     7774 - CY170 CIO channel adapter error.
{                                     7773 - CIO channel function error flag set.
{                                     7772 - Status function timeout after autoload.
{                                     7771 - Incomplete transfer during autoload.
{                                     7770 - Software failure - driver does not support unit type.
{
{      16 - BLOCK ID INVALID - The controller has encountered an invalid Block-ID.  This
{                              can occur on a read, write or locate block operation.  This
{                              error can indicate a hardware failure or media failure.
{
{      17 - INCOMPLETE TRANSFER ON INPUT - The PP driver has detected an incomplete data
{                                          or status transfer during an input operation.
{                                          A non-zero value was in the PP A-register after
{                                          an input instruction terminated.
{
{      18 - INCOMPLETE TRANSFER ON OUTPUT - The PP driver has detected an incomplete data
{                                           or parameter transfer during an output operation.
{                                           A non-zero value was in the PP A-register after
{                                           an output instruction terminated.
{
{      19 - CHANNEL FLAG ERROR - During a read or write operation the master or slave PP
{                                lost synchronization with its partner.  This can occur
{                                when the channel flag was clear when it was expected to
{                                be set or set when it was expected to be clear.
{
{      20 thru 28 - SOFTWARE FAILURE - The CPU or PP has detected a logical inconsistency
{                                      in the tape subsystem.  The symptom code value
{                                      defines the exact failure.
{
{    9.   Blocks written on Unit
{    10.  Blocks read on Unit
{    11.  On The Fly read corrections count
{    12.  On The Fly write corrections count
{    13.  Absolute Block Count from Load Point
{    14.  Absolute number of Tape/File Marks from Load Point
{    15.  Hardware read error recovery count
{    16.  Hardware write error recovery count
{    17.  Last functions issued
{         Bits 48 - 63 = Last function issued
{         Bits 32 - 47 = Last non-status function issued
{         Bits 0 - 31 = Reserved (zero)
{    18.  Retry count of recovery attempts
{    19.  First failure I4 error status register
{         Bits 48 - 63 = Error status register (zero if not CIO channel)
{         Bits 0 - 47 = Reserved (zero)
{    20.  Last failure I4 error status register
{         Bits 48 - 63 = Error status register (zero if not CIO channel)
{         Bits 0 - 47 = Reserved (zero)
{
{   First-failure Data:
{    21.       Initial General and Detailed Status.  The format of the
{              counter word is as follows.
{               Bits 0 - 3 = 0.
{               Bits 4 - 15 = General Status.
{               Bits 16 - 19 = 0.
{               Bits 20 - 31 = Detailed Status.
{               Bits 32 - 63 = Last Good Block ID.
{               Refer to the MB468 Controlware ERS for the meaning
{               of the status bits.
{    22 .. 26.  Initial Extended Status (FIPS Sense Bytes)
{               Refer to the MB468 Controlware ERS for the meaning
{               of the sense byte bits.
{
{   Last-failure Data:
{    27.       Final General and Detailed Status.  The format of the
{              counter word is as follows.
{               Bits 0 - 3 = 0.
{               Bits 4 - 15 = General Status.
{               Bits 16 - 19 = 0.
{               Bits 20 - 31 = Detailed Status.
{               Bits 32 - 63 = Last Good Block ID.
{               Refer to the MB468 Controlware ERS for the meaning
{               of the status bits.
{    28 .. 32.  Final Extended Status (FIPS Sense Bytes)
{               Refer to the MB468 Controlware ERS for the meaning
{               of the sense byte bits.
{
{    33.        Density at which the unit was operating (currently always 38000)
{    34.        CU buffer underrun count (indicates high volume of CM conflicts)
{    35.        Reserved
{    36.        Reserved

  CONST
    cml$5680_11_failure_data = cmc$min_ecc + 5104;

*copyc cmc$condition_limits
