Difference between revisions of "Information Systems:Overnight Schedule"
| Line 37: | Line 37: | ||
[[Overnight EODSAVE|EODSAVE]] runs after the daily or weekly processing, and calls EODBU from library UNIPHARMIT, which calls [[BRMS]] to do a backup. The secondary function of this is to cancel the previous job if something goes wrong. EODSAVE goes into the system restricted state (which will cancel all running jobs), with a time limit of two and a half hours. |
[[Overnight EODSAVE|EODSAVE]] runs after the daily or weekly processing, and calls EODBU from library UNIPHARMIT, which calls [[BRMS]] to do a backup. The secondary function of this is to cancel the previous job if something goes wrong. EODSAVE goes into the system restricted state (which will cancel all running jobs), with a time limit of two and a half hours. |
||
| − | [[Overnight EODEMAIL |
+ | [[Overnight EODEMAIL|EODEMAIL]] runs every morning to email users the tape used for backup. The program called is EODEMAIL from library UNIPHARMIT. |
| − | Other [[Overnight |
+ | Other [[Overnight Emails|emails]] are sent all through the overnight processes. If they are NOT received at the expected times, there MAY be a problem. |
==Timing Interdependencies== |
==Timing Interdependencies== |
||
Revision as of 19:30, 5 January 2016
Current Schedule
The overnight processing - which includes end of day, week, month, and year - is run from the job schedule. To see these jobs, key in WRKJOBSCDE and press enter. Page down until you get to job 'ENDOFDAY'. Note that ENDOFMONTH will automatically run the end of year (both fiscal and calendar).
Work with Job Schedule Entries BART
10/27/15 12:48:35
Type options, press Enter.
2=Change 3=Hold 4=Remove 5=Display details 6=Release
8=Work with last submission 10=Submit immediately
Next
-----Schedule------ Recovery Submit
Opt Job Status Date Time Frequency Action Date
__ ENDOFDAY SCD USER DEF 01:00:00 *WEEKLY *NOSBM 10/28/15
__ ENDOFMONTH SCD *MONTHSTR 06:00:00 *MONTHLY *NOSBM 11/01/15
__ ENDOFWEEK SCD *SUN 01:00:00 *WEEKLY *NOSBM 11/01/15
__ EODEMAIL SCD *ALL 08:00:00 *WEEKLY *NOSBM 10/28/15
__ EODSAVE SCD *ALL 03:00:00 *WEEKLY *NOSBM 10/28/15
Parameters or command
===> _______________________________________________
F3=Exit F4=Prompt F5=Refresh F6=Add F9=Retrieve
F11=Display job queue data F12=Cancel F17=Top F18=Bottom
Programs Called
ENDOFDAY runs Monday through Saturday. The program called is EODDAILY from library UNIPHARMIT.
ENDOFWEEK runs Sunday. The program called is EODWEEKLY from library UNIPHARMIT.
Both of these must run after midnight, as they use yesterday's date instead of today's. Also because the temporary backup tape has a retention period of one day.
ENDOFMONTH runs on the first of the month. The program called is EOM from library UNIPHARMIT.
EODSAVE runs after the daily or weekly processing, and calls EODBU from library UNIPHARMIT, which calls BRMS to do a backup. The secondary function of this is to cancel the previous job if something goes wrong. EODSAVE goes into the system restricted state (which will cancel all running jobs), with a time limit of two and a half hours.
EODEMAIL runs every morning to email users the tape used for backup. The program called is EODEMAIL from library UNIPHARMIT.
Other emails are sent all through the overnight processes. If they are NOT received at the expected times, there MAY be a problem.
Timing Interdependencies
ENDOFDAY and ENDOFWEEK should run at the same time, and must be run after midnight. If not, the temporary backup won't work the first time (because the tape won't be expired), and, as everything is posted to 'yesterday', all the dates in ASW will be wrong.
EODSAVE must run at least two hours after the end of day and of week. Of course, if the length of time they take to run approaches two hours, this will have to be adjusted.
ENDOFMONTH must run at least three hours after EODSAVE. If the system is still in the restricted state at it's scheduled time, it will not run. It will then have to called manually.
EODEMAIL must be run when the Catapult server is active.
Change Scheduled Start Time
The length of time these jobs take to run must be monitored to make sure there is enough time, plus some leeway, before the next job is started. Before you change a start time check for interdependencies.
To change the time a job starts, use option 2.
Change Job Schedule Entry (CHGJOBSCDE)
Type choices, press Enter.
Job name . . . . . . . . . . . . > ENDOFMONTH Name
Entry number . . . . . . . . . . > 000029 000001-999999, *ONLY
Command to run . . . . . . . . . CALL PGM(UNIPHARMIT/EOM)
Frequency . . . . . . . . . . . *MONTHLY *SAME, *ONCE, *WEEKLY...
Schedule date . . . . . . . . . *MONTHSTR Date, *SAME, *CURRENT...
Schedule day . . . . . . . . . . *NONE *SAME, *NONE, *ALL, *MON...
+ for more values
Schedule time . . . . . . . . . '06:00:00' Time, *SAME, *CURRENT
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys
Key in the new 'Schedule time', using a 24 hour clock, with colons. Press enter to update. When you return to the list of job schedule entries, you will have to press F5 to refresh.
Manually Run Scheduled Job
The only jobs I can think of that might need to be run manually are ENDOFMONTH or EODEMAIL. To do this, sign on as EODJOB with our favorite password to set up the correct environment - and to put reports in the correct spool file.
Key in WRKJOBSCDE and press enter. Page to the job you want to run. Use option 10, then Enter, to submit immediately.