Use Batch Processing Entry to schedule programs to run automatically. Each entry has a batch-process number and description.
Entry fields
1. Description: Identify the process.
2. Start Date: Optional. Enter the intended beginning date for the schedule, then verify Next Run Date. For a monthly schedule, confirm with Support that the installed scheduler honors the start-date boundary before relying on it to delay a job.
3. Time of Day: Enter the scheduled time using the AM/PM prompt. A blank time makes the job eligible from midnight; the scheduler must be running and a phantom port must be available.
4. Specific Date: Run once on this date. This selection overrides the other scheduling choices.
5. Day of Month: Choose a monthly run day. If it does not exist in a month, the last day is used; enter 31 for month-end. The additional month-interval prompt supports schedules such as every other month, quarterly, or annually. A Specific Date takes precedence.
6. Day of Week: Enter MON, TUE, WED, THU, FRI, SAT, or SUN. A Specific Date or Day of Month takes precedence.
7. Days Between Processing: Enter the interval, such as 3 for every three days. This is ignored when a Specific Date, Day of Month, or Day of Week is entered.
8. Excluded Days of Week: Use with Days Between Processing. Enter excluded day codes separated by spaces, such as SAT SUN.
9. Program Name: Enter the program to run. Prefix a program normally run from TCL with a period (.). Contact Support if you are unsure which program name applies.
10. Input: Enter responses in the exact order the program requests them, with each response on its own line. Record the current prompts by running the program manually before building the input.
11. Port to Run On: Enter a specific phantom port when its printer assignments are needed. Leave it blank to use the next available phantom port.
Check the schedule
Enter a Specific Date, Day of Month, Day of Week, or Days Between Processing so the process has a schedule. Check Next Run Date after changing scheduling fields.
A new job scheduled for later on its creation day can run that day. When Start Date is entered, Next Run Date is calculated using the later of Start Date and Date Last Processed. Last-processing details are not displayed for a process that has not run.
The standard Batch Process Listing shows Start Date and Next Run Date, sorted by Next Run Date and time. The interactive process report is a separate view sorted by description. Use processing history to review when the job ran. Confirm recovery behavior with Support if a process stopped before completion.
Input tokens
Type the caret character (^) followed by the token. On a standard keyboard, use Shift+6 for the caret.
| Token | Input produced |
|---|---|
^M | Enter |
^D | Current date; ^D-1 is yesterday and ^D+1 is tomorrow |
^FOM | First day of the month; month offsets are allowed |
^EOM | Last day of the month; ^EOM-1 is the previous month-end |
^P | Period based on the current date; ^P-1 is the previous period |
^C | Ctrl+C to clear a field |
^\ | One literal backslash (\) |
For a current date of 03/23/2007, ^FOM gives 03/01/2007, ^FOM-1 gives 02/01/2007, ^EOM-1 gives 02/28/2007, and ^P gives 07/03. Month-end calculations account for leap years.
Day-of-month input Upgrade 2022
Use ^DOM followed by the day number. A plus or minus offset moves by months. ^DOM25-1 enters the 25th of the previous month.
Full-screen input Upgrade 2024
The interactive batch tools provide <I> Input Data for full-screen editing of the program script. Copying a process does not copy its scheduling information.
Test and review
<T> saves the entry and runs its program on your current port. It uses the program's normal processing rules and can update data or produce output. Choose an appropriate test context and check the results before relying on a scheduled run. Program prompts can change after upgrades, so verify old input sequences again.
The original aging-report example uses AR.AGING.RPT, followed by report selection 5, the required Enter responses, and S for summary. Record and test the full sequence from the current report rather than copying an old response count.
For follow-up vendor memos, the current source program is PRINT.VENDOR.MEMO. It prompts for the follow-up date; Enter uses today. Confirm its installed program name, output destination, and input sequence before scheduling it.