Print Schedule using JS (PRTSCDJS)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Print Schedule using Job Scheduler (PRTSCDJS) command allows you print a report based on a number of days that you specify that forecasts what jobs are to be submitted by Advanced Job Scheduler and when. You can include or exclude jobs that have been held.

Note: If you use the schedule code *MINUTES, the PRTSCDJS command can be long running.

Top

Parameters

Keyword Description Choices Notes
NBRDAY Number of days 1-365, 30, *NEXT, *SELECT Optional, Positional 1
PAGADV Page advance *YES, *NO Optional
INCHLDJOB Include held jobs *YES, *NO Optional
SEQ Sequence *DATE, *JOBQ Optional
SLTDATE Select dates Element list Optional
Element 1: From date Character value, *CURRENT
Element 2: To date Character value, *CURRENT
Top

Number of days (NBRDAY)

Specifies the number of days that you want to forecast jobs that are scheduled to be submitted by Advanced Job Scheduler. You can specify a number of days, the next day only or a range of days.

30
The forecast will include the next 30 days.
*NEXT
The forecast will be for the next day.
*SELECT
When you specify *SELECT, you can add a range of dates to include in the forecast in the SLTDATE parameter.
1-365
Specify the number of days that you want to include in the forecast.
Top

Page advance (PAGADV)

Specifies whether you want the page to advance for each day that you specify.

*YES
The report will be printed such that at the end of each day of forecasted jobs the paper will advance to the top of a new page.
*NO
The report will be printed continuously with page breaks when a page is filled.
Top

Include held jobs (INCHLDJOB)

Specifies whether you want to include jobs that have been held in the forecast report.

*NO
The report will not include jobs that have been held.
*YES
The report will include jobs that have been held.
Top

Sequence (SEQ)

Specifies the sequence in which you want to sort the forecast report.

*DATE
Sequence the report in date order.
*JOBQ
Sequence the report by job queue.
Top

Select dates (SLTDATE)

Specifies the range of dates that you want to use when printing the forecast report. The From date is the beginning point in the date range of forecast information that is displayed and the To date is the ending point.

Element 1: From date

*CURRENT
Uses the current date as the beginning date in the date range.
character-value
Specify the date in system format with or without date separators, such as 12/01/01 or 120101, that you want to be the beginning date of the date range.

Element 2: To date

*CURRENT
The current date is the ending date of the date range.
character-value
Specify the date in system format with or without date separators, such as 12/01/01 or 120101, that you want to be the ending date of the date range.
Top

Examples

PRTSCDJS   NBRDAY(5)  PAGEADV(*NO)  INCHLDJOB(*YES)

This command prints the Job Schedule report for jobs that will run for the next 5 days. There will not be a separate page for each day and held jobs are included in the report.

Top

Error messages

Unknown
Top