Hold an application with JavaScript in ESP dSeries (WA DE)
search cancel

Hold an application with JavaScript in ESP dSeries (WA DE)

book

Article ID: 243542

calendar_today

Updated On:

Products

CA Workload Automation DE CA Workload Automation DE - Scheduler (dSeries)

Issue/Introduction

Can user setup a JavaScript to hold an application at startup?

Environment

Release : 12.2

Component :

Resolution

Here is a sample that will use Global variable to decide if the application will be held.   Setup a global variable as in example HOLD_APP (it can be any name).  Set its value to Y.

check_ver = getVar('HOLD_APP');
if (check_ver == 'Y') 
{
execCommand('ALL','MY_APPLICATION.0','ACTION HOLD');
}

Change 'MY_APPLICATION' to your actual application name.  Open the properties of application and define the JavaScript at Runtime.  The application will run the script and hold if global variable is set accordingly.

Additional Information

See this link for more details on ACTION HOLD.