JES2 commands

NJE Console

JES2 operator commands allow remote terminal A terminal that is located at a site removed from the computer to which it is attached. Remote terminals rely on modems and telephone lines to communicate with the host computer. operators to communicate with the JES2 system. This section lists the most commonly used JES2 remote commands, command types, command format, and job control.

See also:


JES2 command types

There are two categories of JES2 commands.

JES2 command format

Enter JES2 commands from a console as follows.

$verb operand1,operand2

Parameter

Description

$

The JES2 command identification character. You can insert blanks anywhere in the command after the initial $, but they are usually not necessary.

verb

A single-character verb that identifies the action to take.

operand

Modifies the verb or command, or identifies the job or system facility to act on. Use commas to separate operands when you specify more than one operand.

When you enter JES2 commands on data lines, you must begin them with /* as follows.

/*$verb operand1,operand2

JES2 job control

JES2 commands limit job or device manipulation to the remote operators jurisdiction. A job is under the operators jurisdiction if the jobs output is routed to that node or if the job was submitted from that node. If a job submitted to JES2 has not been routed by a /*ROUTE statement or a DEST parameter, the job output automatically routes back to the same facility that submitted it.

Operator command restrictions prevent outside manipulation or loss of a job and ensure the systems integrity.

JES2 commands

JES2 operator commands allow remote terminal operators to communicate with the JES2 system. This section lists the most commonly used JES2 remote commands.

Command

Controls or Displays

$A release

job

$C cancel

job

$D display

job, queue

$H hold

job

$P purge

job

$R route

job, queue

$A release

The $A command releases a job under the operators jurisdiction from hold. The job resumes normal processing. The operator can specify a job name or number with the $A command.

Format

$A jobname

Where jobname is the name of the job to be released from hold.

$A Jnnnn

Where nnnn is a single job number to release that job or a range of job numbers to release a series of jobs from hold.

Examples

$A DATA

Releases the job named DATA.

$A J245

Releases job 245.

$A J2-70

Releases all jobs with numbers ranging from 2 to 70.

$A J245,J747

Releases only jobs 245 and 747.

$C cancel

Operators can use the $C command to cancel a job or device under their jurisdiction. The $C command cancels a job on the printer, punch, or reader or a job awaiting execution.

When operators use the $C command on an output device, the command cancels only the active SYSOUT group on that device, it does not cancel other SYSOUT data sets for that job. To cancel a job on the output queue, use the $P command.

If the $C command does not cancel the job, the operator must reenter the command.

Operators can specify a job number or device with the $C command.

Format

$C Jnnnn

Where nnnn is the number of a job to cancel.

Examples

$C J545

Cancels job 545.

$D display

The $D command displays information about the system, a job, a device, or a set of devices. The $D command format depends on the type of information the operator requests.

Format

$D Jnnnn

Displays information about a job or a range of jobs under the operators jurisdiction. If nnnn is a single number, only job nnnn displays. If nnnn is a range of numbers, all jobs in that range display. For example, an operator can type $D J1-32767 and receive a list of all jobs in the system under that operators jurisdiction. If a job is not printing, make sure the jobs criteria (for example, form or class) matches the printers criteria with the $LJnnnn command.

$D MRx,message

Sends a message to the remote specified by x. The message can contain up to 53 characters. If x=0, the message goes to the host computer console.

$D N,Q=y

Displays the queued jobs, where y describes the type of jobs to display. For y, substitute one of these parameters:

  • XEQ Displays only jobs awaiting execution.

  • XEQc Displays only jobs awaiting execution that have the job class specified by c.

  • PPU Displays only jobs waiting for the printer or punch.

  • HOLD Displays jobs on hold.

  • OUT Displays jobs awaiting output processing. Job information and the percentage of spool use display.

$D Q,Q=y

Identical to $D N except that only the number of jobs displays rather than the job names and other information.

$D jobname

Displays a list of all jobs in the system with that job name, including jobs not under the operators jurisdiction.

Examples

$D J244

Displays job 244.

$D J234,J534

Displays jobs 234 and 534.

$D J1-99999

Displays all jobs in the system under the operators jurisdiction.

$D MR0,yes

Sends a yes message to the host computer operator.

$D U,LGN

Displays the VTAM APPLID for JES2.

$D DATA

Displays information about the job(s) named DATA.

$H hold

The $H command puts a job under the operators jurisdiction on hold. If a job is queued and on hold, the job remains queued and the system takes no action on the job. If the job is active, the job finishes its current activity and then re-queues. If a job is awaiting print, punch, or execution, it remains in that state until it is released. If a job is being read, it finishes being read and then enters the execution queue on hold. A job currently executing finishes execution and enters the print queue on hold.

The operator can specify a job name or number with the $H command.

Format

$H jobname

Where jobname is the name of the job to place on hold.

$H Jnnnn

Where nnnn can be a single job number to place that job on hold or a range of job numbers to place a series of jobs on hold.

Examples

$H MYJOB

Places the job named MYJOB on hold.

$H J357

Places job 357 on hold.

$H J240-500

Places all jobs ranging from 240 to 500 on hold.

$H J250,J630

Places only jobs 250 and 630 on hold.

$P purge

The $P command stops job activity after the job completes the current activity.

If the operator specifies a job, the software flags it for purging. If the job is inactive, the software purges it. If the job is active, it completes its current activity and then the software purges it.

Operators must use the $P command to cancel a job on the output queue because $C will not work. Operators can specify a job number to purge or device to drain with the $P command.

Format

$P Jnnnn

Where nnnn is the number of the job to purge.

Examples

$P J333

Purges job 333.

$R route

The $R command routes a jobs output the same way a /*ROUTE statement in JCL does. Operators can route the print or punch output of a job under their jurisdiction to another remote or to the host computer.

The operator can route jobs of a certain type or all jobs with the $R command.

Format

$R type,J=Jnnnn,D=Ryy

Where type is the type of output to route, nnnn is the number of the job to route, and yy is the destination of the routed output.

For the operand type, substitute one of these values:

  • PRT to route print output.

  • PUN to route punch output.

  • ALL to route both print and punch output.

For the operand Ryy, substitute one of these values:

  • LOCAL to route the output to the host computer.

  • Rnnnn to route the output to another remote specified by nnnn.

$R ALL,R=Rx,D=Ry

Allows jobs routed to remote Rx to print at either Rx or Ry, whichever is available first. If the operator at remote Ry types this command:$R PRT,R=Ry,D=Rx the two remotes share a common print queue.

The operator can negate this command by typing the following command: $R type,R=Rx,D=Rx. This command only affects jobs currently in the queue.

Examples

$R PUN,J=J234,D=LOCAL

Routes the punch output of job 234 to the host computer.

$R ALL,J=J345,D=R3

Routes all job 345s output to remote 3.

$R PRT,J=J345,D=LOCAL

Routes job 345s print output to the host computer.

$R ALL,R=R2,D=R4

Allows jobs routed to remote 2 to print at remote 2 or remote 4.

$R All,R=R2,D=R2

Cancels the alternate option.

$R PRT,R=R1,D=R4

Routes all jobs originally routed to remote 1 to remote 4, including jobs awaiting execution.