How can I schedule a job in an Application base on a global variable in date format YYYYMMDD?
search cancel

How can I schedule a job in an Application base on a global variable in date format YYYYMMDD?

book

Article ID: 22358

calendar_today

Updated On:

Products

DSERIES- SERVER CA Workload Automation DE - System Agent (dSeries)

Issue/Introduction

Defined a global variable with date format YYYYMMDD (for example : 20091020) and loaded this variable with CLI command running on a batch file to run a job in an application.

How can a job scheduled in the application base on this global variable + 1 day at 21:00 for example?

Environment

Release:
Component: DSRIES

Windows, UNIX, and Linux platform

Cause

CA Workload Automation DE (dSeries) server accepts date and time values in the format YYYY/MM/DD or YYYY-MM-DD only.

Resolution

You can schedule the job base on the global variable using a JavaScript at the job's Event trigger time 'Run JavaScript' General tab.

Steps;

  1. Create a global variable as shown below;

  2. Define a JavaScript at the job's Event-trigger javascript:

  3. The job's Run frequency should have the following:

  4. Simulate the event.

Additional Information

Creating and Managing Global Variables