How to use TIMEREF on DR tests for CA Workload Automation ESP Edition?
search cancel

How to use TIMEREF on DR tests for CA Workload Automation ESP Edition?

book

Article ID: 116785

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

We plan to do a DR test where the MVS system uses current time, and their ESP backup files are about 120 hours (5 days) behind. And we want to know any tip to get ESP working smoothly.  

Environment

CA WA ESP Edition Z/OS

Resolution

Syntax 
OPER TIMEREF SYSTIME+hhh.mm or OPER TIMEREF SYSTIME-hhh.mm 

+: means to go forward than system time 
-: means to go backward than system time 

hhh.mm is the offset related to the system time. 

Note: As you may notice, it's similar to the TIMEREF option on TIMEZONE parameter used in ESPPARM. This command will re-scan EVENTSET for all schedules. 

To reset, so that CA WA ESP will use the current system time, you can issue: 
OPER TIMEREF SYSTIME+0.00 

Here is an example: 
1. In ESPPARM, code, TIMEREF will make ESP go back 5 days (24X5=120 hours): 
TIMEZONE 0 LOCAL 5W SYSZONE(YES) TIMEREF(-120) 

After ESP was started on Mar 22nd, got: 
11.48.42 STC09689 ESP100W SYSTEM TIME HAS BEEN CHANGED 
11.48.42 STC09689 *180 ESP110A CONFIRM THE TIME CHANGE AND REPLY 'Y' TO 
CONTINUE 
13.54.39 STC09689 R 180,Y 
.... 
13.54.39 STC09689 ESP892W IT IS NOW 13.54.39 ON SUNDAY MARCH 17TH, 2013 
13.54.39 STC09689 *106 ESP893A CONFIRM DATE AND REPLY 'Y' TO CONTINUE, 'N' 
TERMINATE OR 'Q' TO QUIESCE 
13.54.58 STC09689 R 106,Y 

2. Isuse "oper timeref systime-119" from page mode. then: 
- In JESMSGLG: 
13.57.48 STC09689 ESP100W SYSTEM TIME HAS BEEN CHANGED 
13.57.48 STC09689 *107 ESP110A CONFIRM THE TIME CHANGE AND REPLY 'Y' TO 
CONTINUE, 'N' TO TERMINATE ESP OR 'R' TO RETRY 
13.59.20 STC09689 R 107,Y 
- In auditlog, as you can see, the time forwarded one hour: 
13.55.54 SUN 17MAR13 ESP6230I OPERCMD: BY USER1 timeref systime-119 
14.55.57 SUN 17MAR13 ESP6230I OPERCMD: BY INTERNAL EVENTSET EVENT1 SET 
BUILDSCHED