PR (Priority)

The PR (Priority) command sets the priority of jobs or tasks. Changing the priority of a job that is in a job queue can change the order of jobs in that queue, because the system orders jobs in a job queue by job priority and then by time of entry.

The changes made by this command are temporary. If a halt/load occurs, the changes are not preserved across the halt/load.

Syntax

Explanation

<mix number list> PR <number>

Assigns the priority specified by <number> to the PRIORITY task attribute of the jobs or tasks in the mix number list. The value of the PRIORITY attribute can range from 0 through 99, where 99 is the highest priority.

If a task discontinued by the DS command has a priority of 0, the system ignores any special priority category that the task might have, such as control program status. As a result, the system gives the task the lowest priority. For more information about task priorities, refer to the Task Management Programming Guide.

Examples

Example 1

4972,4980 PR 90

Example 2

4975 PR 30