Default language.

Information
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 Stats for Db2 13.1.

XSUTTERM (post-utility termination) automation control point


Use the XSUTTERM automation control point for the following tasks:

  • (master) To override the step condition code by setting the rc variable to any value
  • (server) To perform additional termination processing for work that has already been done

The product invokes this automation control point as the final exit point for the address space.

Variables

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

 

Variable name

Contents

Possible values

Notes

exit_rc

Default return code for this automation control point

 

jobname

Name of the current job

Not applicable

 

jobtype

Type of job that is running

  • UTILITY
  • SERVER

 

objreport.

Stem variable containing output lines from the object report

Not applicable

 

plan

Db2 plan used to connect to Db2

Not applicable

 

rc

Return code with which to override the exit_rc value

This return code determines the job step condition code. If you do not want to change this, specify rc=exit_rc. Otherwise, set this variable to the desired value.

Also see Usage considerations.

read_syserror

 

Not applicable

 

restart

Value of the third parameter on the EXEC statement

  • RESTART
  • NORESTART
  • QUICKEXIT

 

restart_parm

Value of the third parameter on the EXEC statement

  • RESTART
  • NORESTART
  • QUICKEXIT

 

runstats.

Stem variable containing output lines from the RUNSTATS report

Not applicable

 

ssid

Db2 subsystem ID

Not applicable

 

stepname

Name of the current job step

Not applicable

 

step_rc

Return code to use for the job step

 

summary.

Stem variable containing output lines from the SUMMARY DD

You can parse this stem variable to search for specific error messages such as exclusion messages for RTS.

Not applicable

 

syserror.

Stem variable containing output lines from the SYSERROR DD

You can parse this stem variable to search for specific error messages.

Not applicable

uid

Utility ID

Not applicable

 

Return codes

The XSUTTERM automation control point returns the following return codes:

 

Return code

Description

0

Continue the run as normal

Any other value

Abnormal termination

Usage considerations

Review the following information before using this automation control point:

  • Information about the return code is reported in the following locations:

    • Message NGTR303 in CDBPRINT
    • JCL output message IEF142I (JES2)

    If you change the return code by setting variable rc in XSUTTERM, message NGTR303 will not report the changed return code but IEF142I will. In CDBPRINT, message NGTU098 displays, confirming the return code change.

  • When the return code is 8 or greater, the utility is restartable. To end the job with a return code 8 but clean up the utility ID so that it is not restartable:
  • For information about stem variables (such as the summary variable) see the IBM REXX documentation.
  • Both the master and any server jobs invoke the XSUTTERM automation control point. When calling XSUTTERM in the server, you can use it for any processing needed (such as reporting), but do not use it to set global variables used by the master. By the time a server begins termination processing, the master job itself might also be terminating. In other words, the master's XSUTTERM might be called before the server XSUTTERM, thus cancelling access to any global variables that the server sets.
  • The master's syserror variable contains all error messages written in all of the servers' jobs. Because the error messages are saved across restarts, the stem variable will contain all error messages for all runs of the utility ID.

 

 

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

BMC AMI Stats for Db2 12.1