U0020261 Error in Script 'JOBS.MYJOB': Error Number X in ':STOP MSG' not allowed.
book
Article ID: 87656
calendar_today
Updated On:
Products
CA Automic Workload Automation - Automation Engine
Issue/Introduction
Error Message : U0020261 Error in Script 'JOBS.MYJOB': Error Number X in ':STOP MSG' not allowed
In STOP MSG, you can only use error numbers 50-59. So if you are using the return code in the STOP MSG, you are likely to run into this error, where X is any number that is not between 50-59.
This field was added on 30/03/2017. This article has not been updated yet. Refer to the "Description" or "Workaround" sections for solution information.
Fix Status: No Fix
Fix Version(s): n/a
Additional Information
Workaround : Use an error number between 50-59ORInstead of::SET &RETCODE# = GET_UC_OBJECT_STATUS(JOBS,&ACTOBJ#, "RETCODE") :STOP MSG, &RETCODE#, "Error processing JOBS.MAILAGENT.STATEMENT_EMAIL_JCMOVEIT_146_CHECK"Capture the &RETCODE# and assign an error number for it.Example::SET &RETCODE# = GET_UC_OBJECT_STATUS(JOBS,&ACTOBJ#, "RETCODE") :IF &RETCODE# = "2":SET &ERRORNO# = 50:ELSE:SET &ERRORNO# = 51:ENDIF:STOP MSG, &ERRORNO#, "Error processing JOBS.MAILAGENT.STATEMENT_EMAIL_JCMOVEIT_146_CHECK"