getjobid - Display job information

Synopsis

getjobid [-csv] [pid ...]

getjobid -j [-csv] [qualified-job ...]

Description

The getjobid utility writes the qualified job name and process ID for the specified process to standard output. The qualified job name is a string in the form number/user/name. The number is a six-digit decimal number, user is the user profile under which the job was started, and name is the name of job.

In the first synopsis form, the process is identified using the process ID. In the second synopsis form, the process is identified using the qualified job name.

When the -v option is specified, getjobid displays the process ID, parent's process ID, process group, current status, and qualified job name for the specified process.

Note: This utility is unique to i5/OS(TM).

Options

-c
Display information about all of the current child processes of the specified process.
-j
Processes are identified using the qualified job name.
-s
Display a short form with just the qualified job name.
-v
Display detailed information about the specified process, including the process ID, the parent's process ID, process group, current status, and qualified job name.

Operands

Each pid is the decimal process ID of an active process on the system. When pid is not specified, getjobid displays information for the current process.

Each qualified-job is the qualified job name of an active process on the system. The qualified job name is a string in the form number/user/name. The number is a six-digit decimal number, user is the user profile under which the job was started, and name is the name of job.

Exit Status

Related information

Examples

  1. Display the qualified job name of the current process.
    getjobid
    
  2. Display detailed information for three processes.
    getjobid -v 318 942 1130
    
  3. Display the short form of the qualified job name for one process.
    getjobid -s 325
    
  4. Display detailed information for a process identified with the qualified job name.
    getjobid -jv 325411/SHELLTST/QZSHCHLD