Greetings! I'm new to the site, so bear with me.
I've been doing basic Workload Automation for about a year now, and am now running into new territory (for me) and would like some guidance. We have a yearly process that can happen any day of the week during work hours; however the file that is created must be loaded into our web environment during a very short window on Sunday evening. The work order process cannot be delayed as we have other business partners that rely on the yearly file once our analysts say it's time to execute the process, but the file load to the web process must happen Sunday evening at a specific time.
I was thinking that I could add the creation of a one-record dataset as the last step in the JCL to trigger an ESP DSTRIG event. I could then use the DELAYSUB as an APPL processing option to interrogate the day of the week that the event was triggered, and add the correct number of days to execute on Sunday -- it would have several IF statements to determine the DELAYSUB .
BTW, I was also looking into RELDELAY, but saw that it would only delay by number of minutes, so that won't work.
Am I going into the right direction by using a DSTRIG and a DELAYSUB within the APPL? Or is there an easier method that I'm not not aware of/seeing, like using the CALENDAR somehow? I want to get my architecture down before I start fiddling around... I need some guidance from you gurus!
Thanks,
MG