HPlogo MPE/iX Commands Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 2 Command Definitions A-B

ALTJOB

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Alters the attributes of waiting or scheduled jobs. (Native Mode)

Syntax

ALTJOB[ JOB=] { #Jnnn  #Snnn } 
[ ;INPRI=inputpriority] [ ;OUTDEV={ ldev devclass } ]
[.HIPRI][;JOBQ=queuename]

Parameters

#Jnnn

A job number.

#Snnn

A session number. (Although syntactically correct, this parameter is rarely used: sessions do not wait.)

inputpriority

The new input priority (0 = lowest; 14 = highest).

ldev or devclass

The logical device number or device class name of the destination device job's $STDLIST.

HIPRI

Allows the OP or SM to bypass the joblimit, see the JOB command for more detail.

queuename

The name of the job queue whose limit is being changed.

Operation Notes

The ALTJOB command, in conjunction with the JOBFENCE command, allows you to control the flow of all jobs on the system with the exception of HIPRI jobs. It can be used to alter only jobs in the INTRO, WAIT, or SCHED state. Jobs with an input priority less than or equal to the current JOBFENCE, a numerical value from 0 to 14, are deferred.

Use

This command may be issued from a session, job, program, or in BREAK. Pressing BREAK has no effect on this command. If issued from the console or by a user with SM capability, or allowed via the ALLOW command, the ALTJOB command can be used to alter any job. A user who is not at the console, does not have SM or has not been allowed the command may issue ALTJOB only if jobsecurity is set to low. If jobsecurity is set to low then all users can issue ALTJOB against their own jobs and account managers (AM capability) can issue it against any job in that account.

Example

In the following example, three jobs are submitted by users, each with an INPRI value of 8. To change the INPRI values to ensure that JOB1 runs first, JOB2 runs last, and JOB3 runs second with LP allocated as the OUTDEV for JOB3, enter the following commands:

  JOBFENCE 14
15:11/#J1/24/DEFERRED JOB INTRODUCED ON LDEV #53
15:11/#J2/25/DEFERRED JOB INTRODUCED ON LDEV #53
15:13/#J3/26/DEFERRED JOB INTRODUCED ON LDEV #53
  SHOWJOB

JOBNUM STATE IPRI JIN JLIST INTRODUCED JOB NAME

#S23 EXEC 20 20 THU 2:15P OPERATOR.SYS
#J1 WAIT D 8 10S 12 THU 3:11P JOB2,OP.SYS
#J2 WAIT D 8 10S 12 THU 3:11P JOB3,SUE.PAYROLL
#J3 WAIT D 8 10S 12 THU 3:13P JOB1,JIM.ACCTG

4 JOBS:
0 INTRO
3 WAIT; INCL 3 DEFERRED
1 EXEC; INCL 1 SESSIONS
0 SUSP
JOBFENCE= 14; JLIMIT= 5; SLIMIT= 16

ALTJOB #J1;INPRI=10
ALTJOB #J3;INPRI=9;OUTDEV=LP
ALTJOB #J2;INPRI=8
JOBFENCE 6
SHOWJOB
  JOBNUM  STATE IPRI JIN  JLIST INTRODUCED JOB NAME

#S23 EXEC 20 20 THU 2:15P OPERATOR.SYS
#J1 EXEC 10 10S 12 THU 3:13P JOB2, OP.SYS
#J3 EXEC 9 10S LP THU 3:11P JOB1,JIM.ACCTG
#J2 EXEC 8 10S 12 THU 3:11P JOB3,SUE.PAYROLL

4 JOBS:
0 INTRO
0 WAIT; INCL 0 DEFERRED
4 EXEC; INCL 1 SESSIONS
0 SUSP
JOBFENCE= 6; JLIMIT= 5; SLIMIT= 16

Related Information

Commands

JOBFENCE, JOBSECURITY, LISTJOBQ

Manuals

Performing System Operation Tasks

Feedback to webmaster