Running the calcjobs utility

Run the appropriate command depending on whether you want to show a single job, a token, a date or range of dates.

For tokens, the script output shows:
  • Number of jobs run.
  • Total number of minutes it took to complete all jobs.
  • Number of minutes that the longest job took.
  • Average number of minutes.

For jobs, the script output shows the same information as for tokens but for a single job.

For dates, the script output shows the same information as for tokens but for a single date or within a date range.

From a command window in the Infor Lawson environment, use the appropriate command in the substeps that follow.
  1. For a token, specify:
    perl calcjobs -t <token ID>
    where <token ID> is the name of the job for which you want to obtain history, for example, PO100.
    Example: running calcjobs using a token as input
  2. For a job, specify:
    perl calcjobs -j <job ID>
    where <job ID> is the name of the token for which you want to obtain history, for example, PO100C.
    Example: running calcjobs using a job as input
  3. For dates, specify:
    perl calcjobs -r <date>
    where <date> is the single date for which you want to see historical data.
    Or
    perl calcjobs -r <date> <date>
    where <date> and <date> are the start and end dates for a date range.
    Example: running calcjobs using dates as input