CA 7 Workload Automation

 View Only
  • 1.  Schedule rollback if Sunday End of Month

    Posted Jan 06, 2020 04:37 PM
    Is it possible to schedule a job for the last Sunday of the month but if it is the end of month, roll back to the previous Sunday?

    This will get me every Sunday in 2020 that is not end of month but May 31st is Sunday EOM, want to roll back and run Sunday May 24th.

    ------------------  CA-7 CPU JOB SCHEDULING PARAMETER EDIT  ------------------
    FUNCTION: LIST      (ADD,DELETE,EXIT,FORMAT,LIST,REPL,SAVE,SR,SS)
    JOB: DO9BTEST   SCHID: 199  SCAL:     ROLL: N   INDEX: 000
               DOTM LDTM SBTM    ---------------------REPEAT----------------------
               0940 0001 0930    INTERVAL: 0000 TYPE:       COUNT: 0000 STOP: 0000



    __   __ DAILY
    __   __ WEEKLY    SUN:    MON:    TUE:    WED:    THU:    FRI:    SAT:

    __ X __ MONTHLY   JAN: X  FEB: X  MAR: X  APR: X  MAY: X  JUN: X
                      JUL: X  AUG: X  SEP: X  OCT: X  NOV: X  DEC: X
              WEEK: -0                DAY-OF-WEEK: SUN
              RDAY: /-0

    __   __ ANNUAL    DAY:
                                                                 DEFAULT SCAL: AG
    __   __ SYMETRIC  START:       SPAN:                          SCHID-COUNT: 001

    PROGRAM: SM72   MSG-INDX: 00   -- DB.2.1-E --   20.006 / 12:35:52
    MESSAGE: LIST FUNCTION SUCCESSFUL


  • 2.  RE: Schedule rollback if Sunday End of Month
    Best Answer

    Posted Jan 07, 2020 08:55 AM
    yes it can be done but you will need 2 SCHIDs. See my answer below and notice the INDEX=-007 in the 2nd SCHID (SCHID: 20). I used a 7D calendar (Mon to Sun without holidays).

    ------------------ CA-7 CPU JOB SCHEDULING PARAMETER EDIT ------------------
    FUNCTION: LIST (ADD,DELETE,EXIT,FORMAT,LIST,REPL,SAVE,SR,SS)
    JOB: SAULTST2   SCHID: 10  SCAL:   ROLL: D   INDEX: 000
                             DOTM LDTM SBTM ---------------------REPEAT----------------------
                              0940   0001   0930 INTERVAL: 0000 TYPE: COUNT: 0000 STOP: 0000



    __ __ DAILY
    __ __ WEEKLY SUN: MON: TUE: WED: THU: FRI: SAT:

    __ X __ MONTHLY JAN: X FEB: X MAR: X APR: X MAY: X JUN: X
                                    JUL: X AUG: X SEP: X OCT: X NOV: X DEC: X
                     WEEK: -0                        DAY-OF-WEEK: SUN
                     RDAY: /-0


    ------------------ CA-7 CPU JOB SCHEDULING PARAMETER EDIT ------------------
    FUNCTION: LIST (ADD,DELETE,EXIT,FORMAT,LIST,REPL,SAVE,SR,SS)
    JOB: SAULTST2   SCHID: 20  SCAL:   ROLL: D   INDEX: -007
                             DOTM LDTM SBTM ---------------------REPEAT----------------------
                             0940    0001   0930 INTERVAL: 0000 TYPE: COUNT: 0000 STOP: 0000



    __ __ DAILY
    __ __ WEEKLY SUN: MON: TUE: WED: THU: FRI: SAT:

    __ X __ MONTHLY JAN: X FEB: X MAR: X APR: X MAY: X JUN: X
                                     JUL: X AUG: X SEP: X OCT: X NOV: X DEC: X
                    WEEK: /-0,/-1                    DAY-OF-WEEK: MON,TUE,WED,THU,FRI,SAT
                    RDAY: -0


    ------------------------------
    Saul Suarez Del Real
    Core Infrastructure Analyst | TSO-Batch CA7
    TIAA | Financial Services
    ------------------------------



  • 3.  RE: Schedule rollback if Sunday End of Month

    Posted Jan 07, 2020 09:44 AM
    Thank you sir, works perfect, used -006 to get previous Sunday!


    Stephen Rosenfeld  

    Scheduling 

    o: 630.944.1000
    m:717.919.8030
    e:stephen.rosenfeld
    @ensono.com
    Ensono.com

     


    © 2019 Ensono, LP. All rights reserved. Ensono is a trademark of Ensono, LP. The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system.