Default language.

Limited support BMC provides limited support for this version of the product. As a result, BMC no longer accepts comments in this space. If you encounter problems with the product version or the space, contact BMC Support.BMC recommends upgrading to the latest version of the product. To see documentation for that version, see BMC AMI Check for Db2 13.1.

XSVRXERR (server processing error) automation control point


Use the XSVRXERR automation control point to specify the action to take when a database object receives an error.

The product invokes this automation control point when a database object receives an error any time after the object has connected to the BMC AMI Utilities Subsystem started task, also known as CDBSS. This automation control point is called twice for each error condition encountered: first, when the error occurs, and then for any cleanup activity.

Variables

The following table describes the variables used in the XSVRXERR automation control point:


Variable name

Contents

Possible values

action

Action to be taken on error

You can set the value of this variable.

  • ERROR

    (default) If specified, the object will be placed on the error queue. The utility job will end with an error return code.

  • CLEANUP

    A cleanup will be performed for the object. All work for the object stops. The object is disconnected from CDBSS and released from the BMC AMI Utilities matrix. You cannot specify this value if the object is in a must-complete status.

Important

If cleanup fails, the utility ID will be left in QUICKEXIT ERROR status.

call_type

Type of XSVRXERR call

  • ERROR

    This value indicates that a task for an object received an error. The automation control point is called with this type, passing the work element that received the error.

  • CLEANUP

    This value indicates that an object received an error and XSVRXERR requested that a cleanup be performed. After the cleanup is complete, the automation control point is called with this type. See also cleanup_rc.

child

Whether the object is the child of another object

  • YES
  • NO

cleanup_rc

(PTF BQU0592 applied)


Return code available during cleanup processing

The returnCode value that you specify in the +CLEANUP (YES,returnCode) parameter determines the cleanup_rc value. You can override the cleanup_rc value in XSVRXERR. If you did not specify a returnValue value in the CLEANUP parameter, the cleanup_rc value is 0.

After execution of the XSVRXERR cleanup:

  • If the cleanup_rc value is 0, no returnValue value was specified in the CLEANUP parameter and XSVRXERR determines the cleanup_rc value and the product's final return code.
  • If the cleanup_rc value is not 0, the product's final return code is the greater of its previously set value and the cleanup_rc value.

5 through 15

dbname

Name of the database for the object that received the error

Not applicable

ixcreator

Index creator, if applicable, of the object that received the error

Blank if not an index

ixname

Index name, if applicable, of the object that received the error

Blank if not an index

function_name

Name of the function that was being executed when the error occurred

Function name, such as REORG or COPY

part

Partition number of the object that received the error

Not applicable

queue

Name of the work element being processed when the error occurred

  • AFTER ACCESS
  • BEFORE ACCESS
  • CHANGE APPLY
  • CHG APPLY ANAL

reason

Message, set by the work element, describing the cause of the error

Not applicable

retry_count

Number of retries

Not applicable

step_must_complete

Whether processing is in a must-complete state

  • YES
  • NO

stmt

Statement number of the function

Not applicable

tbcreator

Table creator, if applicable, of the object that received the error

Not applicable

tbname

Table name, if applicable, of the object that received the error

Not applicable

tsname

Name of the table space for the object that received the error

Not applicable

Return codes

The XSVRXERR automation control point returns return code 0, indicating normal completion.

Usage considerations

Review the following information before using this automation control point:

  • For drain failures, check for the value of the queue variable to be CHG APPLY ANAL. The only options in this case are to perform cleanup (by setting the action variable to CLEANUP) or to trigger an error condition (by setting the action variable to ERROR).
  • If +ONERROR(ABEND) has been specified in a utility job, the action variable is automatically set to ERROR. If +ONERROR(CONTINUE) has been specified in a utility job, the action variable is automatically set to CLEANUP. You can override these values for the action variable; however, the default actions will prevent situations in which inactive utility IDs appear to stall processing due to potentially conflicting utility ID entries in the matrix.


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*