How to useTimezone for different jobs and events.
search cancel

How to useTimezone for different jobs and events.

book

Article ID: 95114

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

Can I use defined TIMEZONES as a criteria for EARLYSUB parameter within specific jobs. Can it also be used on the SCHEDULE statement in an event definition.

Environment

Release: All
Component: ESP Workload Automation

Resolution

Once a timezone is defined in ESP parameters they can be used in both EARLYSUB in an application, and on the SCHEDULED statement for an Event.

EXAMPLE1: Coding EARLYSUB to schedule at 8pm CST.

JOB MYJOB.TEST
RUN DAILY
EARLYSUB 8PM CST
ENDJOB

 

EXAMPLE2: Coding CST on SCHEDULED statement for an event.

EVENT ID(CYBER.TESTRUNA) SYSTEM(ESPM) REPLACE
INVOKE 'ESP.TESTPROC(TESTRUNA)'
SCHEDULE 8PM CST DAILY
ENDDEF

Returns the following results:

EVENT ID(CYBER.TESTRUNA) SYSTEM(ESPM) REPLACE
SCHEDULE 20.00 CST DAILY STARTING TUE 8TH MAY 2018
INVOKE 'ESP.TESTPROC(TESTRUNA)'
ENDDEF