CA Workload Automation CA 7 Edition

Expand all | Collapse all

How to change the job schedule

  • 1.  How to change the job schedule

    Posted 04-23-2018 08:33 AM

    I have a job defined as below,

     

    //LSXXXXYY JOB (DLS,PROD),

    // CLASS=H

    //LSMERGE EXEC LSMERGE,

    // REGION=10240K

    #JI,ID=2 LAST BUSINESS DAY OF THE WEEK

    //LS03PRC EXEC LS03PRC,REGION=10240K,

    // DATE=IDACTNG

    #JEND

    #JI,ID=3 LAST BUSINESS DAY OF THE MONTH

    //LS03PR1 EXEC LS03PR1,REGION=10240K

    //LS003G EXEC GPRDSAS,MEMBER=LSLDRPTS

    //LSREPT1 DD DSN=NML.LOANSURR.PRODDATA.LDRPRECS(+1),DISP=SHR

    //OUTPUT DD SYSOUT=(E,,LS38),

    // DCB=(NML.DATAPROC.PRODDATA.PNCHDSCB,

    // LRECL=220,BLKSIZE=12760)

    #JEND

     

    Its schedule definition is as follows,

     

    ------------------------------ SCHEDULES ------------------------------

     

    CALENDAR XXXXXXX

    ID=002 ROLL=B INDEX=+000

    SCAL= DOTM=2359 LEADTM=0100 SUBTM=2345 STARTM=2259

    WEEKLY DAY=FRI

    ID=003 ROLL=B INDEX=+000

    SCAL= DOTM=2359 LEADTM=0100 SUBTM=2345 STARTM=2259

    MONTHLY RDAY=-00 MONTH=ALL

     

    ----------------- TRIGGERED BY JOBS/DATASETS/NETWORKS ------------------

    JOB=DALYMTWT SCHID=000 DOTM=0300 LEADTM=0010 SUBMTM=0000

     

     

    the triggering job runs Mon - Thus. So, If month end falls on normal week day, the job first runs with step LSMERGE. Then again it runs for second time with steps LSMERGE , LS03PR1 , LS003G
     
    If month end falls on Friday, the job first runs with step LSMERGE, LS03PRC. Then again it runs for second time with steps LSMERGE , LS03PR1 , LS003G

     

    ideally below should be the run steps;


    if month end is normal week day then job should run with steps LSMERGE , LS03PR1 , LS003G

    If month end is Friday then it should run only once with steps LSMERGE, LS03PRC, LS03PR1 , LS003G

     

    how can I get this fixed.



  • 2.  Re: How to change the job schedule

    Posted 04-23-2018 04:57 PM

    Hello Pavan,

     

    Are you using CA7?



  • 3.  Re: How to change the job schedule

    Posted 04-24-2018 09:24 AM

    Hello, Pavan,

     

    You state:

    if month end is normal week day then job should run with steps LSMERGE , LS03PR1 , LS003G

    If month end is Friday then it should run only once with steps LSMERGE, LS03PRC, LS03PR1 , LS003G

     

    what do you want if Friday is not month end?  Should the job run? Or do you only want this job to run on month end?



  • 4.  Re: How to change the job schedule

    Posted 06-18-2018 01:45 PM

    Pavan,

     

    Were you able to figure this out on your own? Please let us know if you still need help.