CA Workload Automation CA 7 Edition

Expand all | Collapse all

CA7 - hard to schedule job 1st, 5th, Monday

  • 1.  CA7 - hard to schedule job 1st, 5th, Monday

    Posted 10-30-2019 08:43 PM
    I have a hard job to schedule again.
    Job P1RMSISA needs to be scheduled in on the 1st day of the month, the 5th day of the month & every Monday. BUT NOT run twice if the 1st or 5th happen to be a Monday.    no schedule days are Sundays and Holidays and go forward if there is a non schedule day.

    I've seen someone else have this (or close) situation but I can't seem to find it in a search to help me with ideas and I didn't keep copies of that situation when someone else had it.   I think it might have been MarySue that had the answer using weeks and days to schedule it.

    Renate

    ------------------------------
    RenateLynn Edwards
    Workload Automation Administrator CA7/CA11/CA1
    Security Service Federal Credit Union
    Texas
    ------------------------------


  • 2.  RE: CA7 - hard to schedule job 1st, 5th, Monday

    Posted 10-31-2019 09:12 AM
    Hi Renate,
    this is how I would do it:

    ID=010 ROLL=F INDEX=+000
    SCAL= DOTM=1000 LEADTM=0100 SUBTM=0900 STARTM=0900
                 MONTHLY NDAY=MON WEEK=01 MONTH=ALL
                 MONTHLY NDAY=MON WEEK=02 MONTH=ALL
                 MONTHLY NDAY=MON WEEK=03 MONTH=ALL
                 MONTHLY NDAY=MON WEEK=04 MONTH=ALL
                 MONTHLY NDAY=MON WEEK=05 MONTH=ALL
                 MONTHLY RDAY=01 MONTH=ALL
                 MONTHLY RDAY=05 MONTH=ALL
    ID=020 ROLL=N INDEX=+000
    SCAL= DOTM=1000 LEADTM=0100 SUBTM=0900 STARTM=0900
                WEEKLY DAY=MON

    ------------------------------
    Saul Suarez Del Real
    TIAA-CREF
    ------------------------------



  • 3.  RE: CA7 - hard to schedule job 1st, 5th, Monday

    Posted 10-31-2019 01:18 PM
    THANKS SO MUCH.  You got closer with less multiple days than I did but I can't get yours to work without multiples either.   If I use my 6 day calendar (holidays and Sundays are non-schd days) then I get the following multiples.
     ID MULTIPLE SCHEDULES AT LEAST ONE DAY
     SCHEDULE IDS 001 AND 002 ARE BOTH SCHEDULED ON DEC 02
     SCHEDULE IDS 001 AND 002 ARE BOTH SCHEDULED ON JAN 06
     SCHEDULE IDS 001 AND 002 ARE BOTH SCHEDULED ON MAR 02
     SCHEDULE IDS 001 AND 002 ARE BOTH SCHEDULED ON APR 06

    I tried it with my 7d calendar just for kicks...  and didn't have any multiples but did have some scheduled on Sundays.

    my calendar is 6d
    STEP6D,EXEC  CA7AL,MBR=SCAL206D
    ASM.SYSIN  DD *
           PRINT GEN
           CALENDAR  YEAR=2020,SCAL=6D,CURDATE=19192,                    X
                 SCHDAYS=(MON,TUE,WED,THU,FRI,SAT),                      X
                 HOLIDAY=(0101,0120,0217,0525,0704,0907,1012,1111,1126,  X
                 1225),                                                  X
                 NOSCHDY=(0101,0120,0217,0525,0704,0907,1012,1111,1126,  X

    what does yours look like that it makes the difference?

    Renate



    ------------------------------
    RenateLynn Edwards
    Workload Automation Administrator CA7/CA11/CA1
    Security Service Federal Credit Union
    Texas
    ------------------------------



  • 4.  RE: CA7 - hard to schedule job 1st, 5th, Monday

    Posted 16 days ago
    I would add exception   RDAYS=/1,/5   to the second SCHID, so both be mutually exclusive.
    Are you OK with first SCHID running on TUE whenever it is a holiday on 1st or 5th which falls on a MON, along with the MON run on that week? It will happen if ROLL=N on second SCHID.

    ------------------------------
    Production Support Analyst
    IBM
    ------------------------------



  • 5.  RE: CA7 - hard to schedule job 1st, 5th, Monday

    Posted 10-31-2019 09:20 AM
    two SCHIDs:

    FUNCTION: LIST (ADD,DELETE,EXIT,FORMAT,LIST,REPL,SAVE,SR,SS)
    JOB: SAULCCTS SCHID: 10 SCAL: ROLL: F INDEX: 000
                           DOTM LDTM SBTM ---------------------REPEAT-----------------
                          1000 0100 0900 INTERVAL: 0000 TYPE: COUNT: 0000 STOP:

    __ __ 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: /1,/2,/3,/4,/5 DAY-OF-WEEK: MON
                       RDAY: 1,5


    FUNCTION: LIST (ADD,DELETE,EXIT,FORMAT,LIST,REPL,SAVE,SR,SS)
    JOB: SAULCCTS SCHID: 20 SCAL: ROLL: N INDEX: 000
                            DOTM LDTM SBTM ---------------------REPEAT----------------
                            1000 0100 0900 INTERVAL: 0000 TYPE: COUNT: 0000 STOP

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


    ------------------------------
    Saul Suarez Del Real
    TIAA-CREF
    ------------------------------



  • 6.  RE: CA7 - hard to schedule job 1st, 5th, Monday

    Posted 10-31-2019 03:59 PM
    Hi Renate,
    I wonder why you got multiples on some Mondays. I used a 5 day calendar with weekends and holidays as non-working days and I did not get multiples.

    Saul

    ------------------------------
    Saul Suarez Del Real
    TIAA-CREF
    ------------------------------