SmartSwitch considerations for ON FAILURE


If the SmartSwitch feature switches the job from UNLOAD PLUS to BMC AMI Unload for Db2, a single ON FAILURE ALL TERMINATE UTILITY statement passes to BMC AMI Unload with the highest assigned return code. When multiple ON FAILURE TERMINATE UTILITY statements are present, UNLOAD PLUS functions as described in the "Multiple statements" section of the ON-FAILURE topic.

Return code values from UNLOAD PLUS pass to BMC AMI Unload as shown in the following table:

UNLOAD PLUS return code

Return code passed to BMC AMI Unload

Less than 5

5

5 through 15

5 through 15

Greater than 15

15

SmartSwitch converts all ON FAILURE TERMINATE UTILITY RETCODE integer statements into one ON FAILURE ALL TERMINATE UTILITY RETCODE integer statement and sends it to BMC AMI Unload. SmartSwitch also converts the value to +CLEANUP(YES,returnCode) for use in NGTSSJCL/NGTSSSYN. When the JCL formed in NGTSSJCL is executed under PGM=NGTUTIL, +CLEANUP(YES,returnCode) overrides the ON FAILURE ALL TERMINATE UTILITY RETCODE integer value. For more information, see +CLEANUP.

 

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