z/OS JES2 Commands
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


$G H - Hold a job at another node

z/OS JES2 Commands
SA32-0990-00

Function

To hold a Job at another node.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-$G--H--+---------+--,'jobname'--+-,J--|--JOB--n-+------------>
          +-N--nnnn-+              +-,S--|--STC--n-+   
          +-name----+              '-,T--|--TSU--n-'   
          '-destid--'                                  

>--,O=--+-LOCAL--|--ANYLOCAL---+-------------------------------><
        +-N--nnnn--|--nodename-+   
        '-destid---------------'   

Parameters

J|JOBn or S|STCn or T|TSUn
The job ID (batch job (Jn), started task (Sn), or time-sharing user (Tn)) assigned to the job by its originating node. This operand is necessary only if more than one job exists with the specified job name.
‘jobname'
The name of the job that is held. The name must appear as coded on the JOB statement and must be enclosed in apostrophes. If the job did not originate at the sending node (or have default print and/or punch output for the sending node), the destination node must have the sending node flagged as having network authority.
Nnnnn|name|destid
The destination node to which JES2 sends this command. You can specify this location by an alias for the name of a node. The destination node must have the sending node flagged as having job authority.
O=
The node on which the job originated. You must specify this parameter if the originating node is not the node at which this $G H command is entered. If you fail to identify the originating node, JES2 issues the $HASP693 message indicating that the job was not found. The valid specifications:
LOCAL|ANYLOCAL
Indicates that jobs are to be run at the local node.
Nnnnn|nodename
Indicates that jobs are to be run at the specified node(s). You can specify a node using a decimal node identifier from 1 to 32767 or an EBCDIC nodename.
destid
Indicates that jobs are to be run at the specified node(s). You can specify this location by an alias for the name of a node.
Note: This parameter requires that the destination node has the sending node flagged as having network authority.

Authority Required

This command requires system authority. The description of the $T RDRnn command explains how to ensure that the authority of the appropriate MVS™ system command group is assigned.

This command requires update security access authority. For a description of assigning command input authority, see z/OS JES2 Initialization and Tuning Guide, SA32-0991.

For the authority required at the destination node, see Displaying and controlling jobs at other nodes.

Processing Considerations

  • If you do not know the job ID of the job with this jobname, use the $G D command to display the job IDs of all jobs with this jobname at a specific node.
  • The $T NODE,Auth= command sets the command authority of a specified node.

Scope

Network-wide. This command only needs to be issued from a single member; the command has an effect across the entire MAS.

Messages

The $HASP000 command indicates that the command has been accepted.

Example

 1   $g h newyork,'jobc'

           $HASP000 OK
  JOB00019 N2   M2 $HASP890 JOBC  EXECUTING A PRIO  9 HOLD IBM2

JES2 sends a global hold command record through the network to the node named NEWYORK. That node places the job named JOBC in hold status (if found and owned by the sending node) and then sends a response back to the sending node.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014