Deprecated and Unsupported Script 12.2

book

Article ID: 131109

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction



Are the following script functions supported in 12.2.2? These used to work in older versions:

SYS_ACT_JPNAME
SYS_ACT_JPNR
SYS_ACT_JOBNAME
SYS_ACT_JOBNR

When used in a child job of a workflow, the following results in an error after migrating to V12.2.2:


:SET &PNMBR# = SYS_ACT_JPNR()

:SET &GPNAME# = SYS_ACT_JPNAME(&PNMBR#)

Result: 

U00020501 Runtime error in object '%', line '0002': Statement has only '001' current parameters


The following adjustment provides a successful execution, and returns the workflow name:

:SET &PNMBR# = SYS_ACT_JPNR()

:SET &GPNAME# = SYS_ACT_JPNAME()

Environment

Any 12.x+ environment

Resolution

Some of the below functions may still allow jobs/scripts to execute successfully, while some may no longer work or require modification in order to run. In any event, these functions are *not* supported from V9 onward and if issues arise, they will need to be replaced. Reference the linked documentation, or the list below:

https://docs.automic.com/documentation/webhelp/english/AWA/12.2/DOCU/12.2/AWA%20Guides/help.htm#Script/Reference/Nonsupported_Script_Elements.htm%3FTocPath%3DReference%7CAutomation%2520Engine%2520Script%2520Reference%7C_____4

:REPLACE_JP_STRUCTURE 
As of UC4 version 8.00A, this script statement has been renamed to :REPLACE_STRUCTURE. The former notation can still be used. 

:SET_UC_SETTING 
As of version 6.00A, the setting MAX_PARALLEL has been renamed to WORKLOAD_MAX. The old name is still valid. 

:XML_CLOSE_DOCU 
As of UC4 version 6.00A, this script statement has been renamed to :XML_CLOSE. The former notation can still be used. 

GET_UC_SETTING 
As of version 6.00A, the setting MAX_PARALLEL has been renamed to WORKLOAD_MAX_JOB. Scripts are automatically adjusted when the UC4 Database is updated. 

PREP_PROCESS_HOSTGROUP 
As of version 8.00A, this script function has been renamed to PREP_PROCESS_AGENTGROUP. The former notation can still be used. 

XML_OPEN_DOCU 
As of version 6.00A, this script function has been renamed to XML_OPEN. The former notation can still be used. 

CINT and CSTR 
These script functions do not support negative numbers and floating-point numbers. As of version 9.00A, the script element CONVERT can be used to convert all types of data. 

SYS_ACT_JPNAME and SYS_ACT_JPNR 
These script elements have the same functions as SYS_ACT_PARENT_NAME and SYS_ACT_PARENT_NR. They can still be used. 

SYS_ACT_JOBNAME and SYS_ACT_JOBNR 
These two script elements have the same functions as SYS_ACT_ME_NAME and SYS_ACT_ME_NR. They can still be used.