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.