Print Schedule using JS (PRTSCDJS)

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 IBM Advanced Job Scheduler for i 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.

Parameters

Keyword Description Choices Notes
NBRDAY Number of days 1-365, 30, *NEXT, *SELECT Optional, Positional 1
APP Application Generic name, name, *ALL Optional
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

Number of days (NBRDAY)

Specifies the number of days that you want to forecast jobs that are scheduled to be submitted by IBM Advanced Job Scheduler for i . 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.

Application (APP)

Specifies the name of the application, generic application or all applications whose jobs you want to forecast.

*ALL
All the applications that meet this command's other parameter values are selected.
generic-name
Specify the generic name of the application whose job schedule entries you want to forecast. A generic name is a character string of one or more characters followed by an asterisk (*); for example, ABC*. If the generic name is specified, then all entries with application names that begin with the generic name are changed. If an asterisk is not included with the generic (prefix) name, the system assumes it to be the complete application name.
name
Specify the user-defined name of the application whose jobs you want to forecast.

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.

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.

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.

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/09 or 120109, 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/09 or 120109, that you want to be the ending date of the date range.

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.

Error messages

Unknown