CA 7 Workload Automation Disaster Recovery Marysue Redd
Terms of This Presentation This presentation was based on current information and resource allocations as of October 2009 and is subject to change or withdrawal by CA at any time without notice. Notwithstanding anything in this presentation to the contrary, this presentation shall not serve to (i) affect the rights and/or obligations of CA or its licensees under any existing or future written license agreement or services agreement relating to any CA software product; or (ii) amend any product documentation or specifications for any CA software product. The development, release and timing of any features or functionality described in this presentation remain at CA s sole discretion. Notwithstanding anything in this presentation to the contrary, upon the general availability of any future CA product release referenced in this presentation, CA will make such release available (i) for sale to new licensees of such product; and (ii) to existing licensees of such product on a when and if-available basis as part of CA maintenance and support, and in the form of a regularly scheduled major product release. Such releases may be made available to current licensees of such product who are current subscribers to CA maintenance and support on a when and if-available basis. In the event of a conflict between the terms of this paragraph and any other information contained in this presentation, the terms of this paragraph shall govern. 2
For Informational Purposes Only Certain information in this presentation may outline CA s general product direction. All information in this presentation is for your informational purposes only and may not be incorporated into any contract. CA assumes no responsibility for the accuracy or completeness of the information. To the extent permitted by applicable law, CA provides this document as is without warranty of any kind, including without limitation, any implied warranties or merchantability, fitness for a particular purpose, or non-infringement. In no event will CA be liable for any loss or damage, direct or indirect, from the use of this document, including, without limitation, lost profits, lost investment, business interruption, goodwill, or lost data, even if CA is expressly advised of the possibility of such damages. 3
Abstract > Are your disaster recovery procedures a disaster? Attend this session to learn how to use CA 7 Workload Automation (CA 7) tools help develop your disaster recovery plan. Find out how CA 7 Workload Automation Disaster Recovery Modes and Classes can be the key to helping you survive the next disaster. 4
Agenda > What is disaster recovery? > Disaster Recovery Options > Recovery from schedule outage > Recovery from non-scheduled outage > Other CA 7 Disaster Recovery features 5
What is Disaster Recovery? > Ability to provide seamless, continuous processing > Requires planning/execution of plan 6
Disaster Recovery Options > Disaster Recovery Mode Feature added in r11.0 to reduce the number of jobs executed during a disaster Can start CA 7 in this mode (DRMODE=YES parm) Change to DRMODE while running (/DRMODE command) Two new initialization file statements DRMODE DRCLASS > When running in disaster recovery mode: Schedule scan skips jobs in inactive DRCLASS Predecessor jobs in inactive classes option Triggering of inactive classes option 7
Disaster Recovery Options (cont) ------------------------- CA 7 CPU JOB DEFINITION -------------------------- FUNCTION: (ADD,DELETE,DD,PURGE,DELPRRN,FORMAT,LIST,UPD) JOB: GENERAL: SYSTEM: JOBNET: OWNER: UID: JCL: ID: MEMBER: RELOAD: EXEC: RETAIN-JCL: LIB: REQUIREMENTS: HOLD: JCL-OVRD: USE-OVRD-LIB: VERIFY: MAINT: SATISFACTION LEAD-TIME: JOB: DSN: ARFSET: EXECUTION: MAINID: INSERT-RMS: COND-CODE: RO: DONT SCHEDULE -- BEFORE: AFTER: MESSAGES: LTERM: REQUIREMENT-LIST: PROMPTS: ERROR MSGS -- RQMTS NOT USED: DSN NOT FOUND: RESOURCES: REGION: CLOCK-TIME: CPU-TIME: CLASS: PRTY: MSGCLASS: DRCLASS: TAPE DRIVES...TYPE1: M C TYPE2: M C PROGRAM: SM20 MSG-INDX: 00 -- DB.1 -- yy.ddd / hh:mm:ss MESSAGE: ENTER FUNCTION, TRANSFER OR ENTER A COMMAND ON THE TOP LINE 8
Disaster Recovery Options (cont) -------------------------- CA-7 XP Job Definition -------------------------- Function: (Add, DD, Delete, DELPRRN, Format, List, Purge, Update) Job: System: JOBNET: Owner: UID: XP Node: XP EXEC: XP PARM: Optional PARMLIB: Member: EXEC: SUTYPE: Cond-Code: RO: DRClass: Hold: Verify: Satisfaction Lead Time: ARFSET: Clock Time: WLBClass: WLBPRTY: Trace: Don't Schedule Before: After: Retain: LTERM: Prompt: Rqmt List: Rqmts Not Used: PROGRAM: SM22 MSG-INDX: 00 -- DB.10 -- 08.233 / 08:30:31 MESSAGE: ENTER FUNCTION, TRANSFER OR ENTER A COMMAND ON THE TOP LINE 9
Disaster Recovery Options (cont) > CA 7 maintains list of active disaster recovery classes Classes are active because they are on the list > Classes added to list by: DRCLASS init deck statement /DRCLASS command > /DISPLAY,ST=DR displays active disaster recovery classes 10
Disaster Recovery Options (cont) > DRMODE init deck statement controls how disaster recovery mode will work DRMODE,DEFCLASS=value @SYSTEM, RQMTS=DR NORM,TRIGGERS=DR NORM, VERIFY=NO YES 11
Recovery From a Scheduled Outage 12
Recovery from a Scheduled Outage > Assure that queue/support files are large enough to handle backed-up workload FJOB DRMODE= DRCLASS= /DISPLAY,Q=ALL 13
Recovery from a Scheduled Outage (cont) > Quiesce CA 7 job submission STOP,Q=ALL SSCAN,TIME=0 14
Recovery from a Scheduled Outage (cont) > Note the NEXT SCAN PERIOD START TIME from SSCAN command output CURRENT SCHEDULE SCAN VALUES SPAN = 240 INCREMENT = 120 QUEUE DWELL = 30 APC.LV1CA7.CA7R1101.JCLLIB SKELETON RETRY = 0 REPROMPT = 10 LEAD TIME = 0 STATUS: REQQ IS ACTIVE ABR MSGS = NO RDYQ IS ACTIVE HOLD JOBS = NO NEXT SCAN WAKE-UP = 99999 AT 3679 NEXT SCAN PERIOD START TIME = yyddd AT hhmm 15
Recovery from a Scheduled Outage (cont) > Shutdown CA 7 /SHUTDOWN,Z5 CA 7.937 QUEUES SUCCESSFULLY UNLOADED > Dump the CA 7 primary and secondary log files 16
Recovery from a Scheduled Outage (cont) > If the restart time is before the noted NEXT SCAN PERIOD START TIME, restart CA 7 S CA7ONL,TYPE=MOVQ (if queues or checkpoint file reallocated)-- S CA7ONL,TYPE=MOVQ,DRMODE=YES if wanting to start 7 in DR mode CA 7.936 QUEUES SUCCESSFULLY RELOADED 17
Recovery from a Scheduled Outage (cont) > If the restart time is after the noted NEXT SCAN PERIOD START TIME, change INIT file settings and restart CA 7 RUNOPT=NSTA on the INIT statement STOPQ=YES on the SCHEDULE statement Ensure that CA 7 can handle the possible backlog Decide if you want to run in DRMODE S CA7ONL,TYPE=MOVQ or S CA7ONL,TYPE=MOVQ,DRMODE=YES if you want to start CA 7 in DR mode CA 7.936 QUEUES SUCCESSFULLY RELOADED START,Q=ALL command to start job submission SSCAN commands to set date/time and turn on scan 18
Recovery From a Non-Scheduled Outage 19
Recovery from a Non-Scheduled Outage > Retain CA 7 log files if possible SASSHIS8 08 report to recreate browse messages SCN0-11 SCHEDULE SCAN STARTED AT hh:mm:ss ON yy.ddd ***** SCAN PERIOD OF yy.ddd AT hhmm THRU yy.ddd AT hhmm ***** > Recovery Aids Program Last Logged Status of Jobs Report Generated Batch Terminal Interface Commands Report Simulated LQ Display of Jobs Report 20
Recovery from a Non-Scheduled Outage (cont) > If outage is DASD related and queue files or the checkpoint data set have to be reallocated, start CA 7 with TYPE=FORM otherwise, use TYPE=ERST Ensure that CA 7 can handle the possible backlog Decide if you want to run in DRMODE START,Q=ALL command to start job submission SSCAN commands to set date/time and turn on scan RUNOPT=NSTA on the INIT statement STOPQ=YES on the SCHEDULE statement 21
Recovery from a Non-Scheduled Outage (cont) > If normal processing is to occur from this point Execute BTI job with output file from the Recovery Aids program (if FORM start was required) START,Q=ALL to start job submission SSCAN commands to set date/time and turn on schedule scan 22
Recovery from a Non-Scheduled Outage (cont) > If only a subset of the processing is to occur DRMODE? HOLD,Q=ALL SSCAN,SCAN=HLD DEMAND new work as required Release queue records when ready to process them 23
Other CA 7 DR Features > Dormant Copy of CA 7 > Database Transportability 24
Session Summary CA 7 can be a very effective tool in restoring batch processing after a disaster. 25
Questions??