Help/Systems SEQUEL Software PowerTech Skybot Software
Help/Systems
The World's Leader in IBM iSeries Software Solutions

Using the AUTOWORK Program in Robot/SCHEDULE to Run Missed Jobs

Introduction

The Robot/SCHEDULE AUTOWORK program allows you to run jobs that were missed while Robot/SCHEDULE was inactive. You can schedule the program in a Robot/SCHEDULE job or call it from a command line.

Using AUTOWORK

Enter the following program call to run any jobs that were missed while Robot/SCHEDULE was inactive:

CALL PGM(ROBOTLIB/AUTOWORK) PARM('date')

where date is the date on which the jobs were missed. Enter the date in your system date format.

Or, create a Robot/SCHEDULE job to call the program and use the reserved command variable @@DATE to supply the current system date, no matter when the job runs.

Note: You must include the single quotes (ʻ ʼ) around the date, whether you enter the date or use the @@DATE reserved command variable.\

The date you enter determines the jobs that will run:

  • Todayʼs Date
  • If you enter todayʼs date, Robot/SCHEDULE runs missed jobs that were scheduled from midnight (00:00) to the current time.

  • Earlier Dates
  • If you enter an earlier date, Robot/SCHEDULE runs missed jobs that were scheduled from midnight (00:00) to 23:59 on that date only. It does not run missed jobs from any other date. If you need to run missed jobs for more than one date, enter each date separately.

    Note: AUTOWORK relies on completion history to perform an accurate check. Purged history records can make a job appear to have been “missed” when it actually ran.

  • Multiple Runs
  • If a job is scheduled to run at more than one time on the date you specify, Robot/SCHEDULE runs each missed job only once, even if it has missed more than one run time. If a job with multiple run times has completed once successfully on the specified date, it is not listed as “missed” and AUTOWORK does not run it again.