How to recover deleted Scheduler jobs definitions
search cancel

How to recover deleted Scheduler jobs definitions

book

Article ID: 257307

calendar_today

Updated On:

Products

Scheduler Job Management

Issue/Introduction

Two Jobs definitions were accidentally deleted in Scheduler.   We have backup files that are taken using the CAJUTIL0 BACKUP commands. 

How to restore the deleted information without affecting any jobs that are running.

 

Environment

Release : 11.0

Component: Scheduler Job Management

Resolution

RESTORE the data base to a test Scheduler system so you can copy the needed jobs definitions from there.   Sample JCL:  

//RESTORE EXEC CAJUTIL0                                     
//SYSPRINT DD SYSOUT=*                                      
//CAIJBST  DD  DISP=SHR,DSN=HLQ.CAIJMST.BACKUP     <--CHANGE DSN ONLY
//CAIJBRK  DD  DISP=SHR,DSN=HLQ.CAIJTRK.BACKUP     <--CHANGE DSN ONLY
//CAIJBTG  DD  DISP=SHR,DSN=HLQ.CAIJSTG.BACKUP     <--CHANGE DSN ONLY
//CAIJBCM  DD  DISP=SHR,DSN=HLQ.CAIJDCM.BACKUP    <--CHANGE DSN ONLY
//SYSIN    DD   *                                          
 RESTORE CAIJMST                    <-- schedules + jobs definitions are in CAIJMST
 RESTORE CAIJTRK  
 RESTORE CAIJSTG  
 RESTORE CAIJDCM  
/*