4    Managing Your Print Job

This chapter explains how to check the status of, modify, cancel, and resubmit a print job.

4.1    Checking the Status of Your Job

Use the pdq command to request a list of jobs that you have submitted to a logical printer. This information can cover one or all jobs you have submitted and that are currently residing in the queue associated with the printer.

The returned list of jobs is displayed in the order in which the jobs are scheduled to print.

As an end user, you can view only the jobs that you own.

For example, to list all of your jobs in the queue associated with the default logical printer:

$ pdq

To list all of your jobs in the queue associated with logical printer bulldog, enter:

% pdq -p bulldog

When you use the pdq command to request status information, the command displays the following job attributes:

4.1.1    Job States

Part of the information returned by the pdq command is the job's current state. Table 4-1 describes possible job states.

Table 4-1:  Job States

State Description
completed The job completed printing or was canceled.
held The job is being held until the job-hold attribute is set to no.
paused The job was paused via the pdpause command.
pending The job is waiting to be scheduled.
printing The job is printing now.
processing The job is scheduled for printing and is awaiting a connection to the physical printer.
retained The job completed printing or failed. The job, its attributes, and data are being retained until a specified period of time elapses. During the retention period, you can resubmit the print job.
terminating The job has been canceled. The supervisor is terminating its connection to the physical printer.

4.1.2    Displaying a Detailed List of Your Job's Attributes

To display a detailed list of your job's attributes, use the pdq command with the -r verbose option. For example, to display the verbose set of job attributes associated with job 123 on logical printer bulldog, spooler dogear_spl, enter:

$ pdq -p bulldog -r verbose dogear_spl:123

To display a list of your job's attributes including document attributes, use the pdls command and specify -x scope=1. For example, to display the verbose set of job and document attributes associated with job 123, enter:

$ pdls -c job -r verbose -x "scope=1" dogear_spl:123

To request all of a job's attributes, including many that are not displayed when you specify verbose, use the -r all option. Use the -s line option to display one attribute per line.

% pdls -c job -r all -s line dogear_spl:123

4.1.3    Requesting Job Error Information

If your job has not printed correctly you might be able to retrieve additional information by using the pdls command to request certain attributes. The job attributes that pertain to job errors are current-job-state, job-state-reasons, and job-state-message.

For example, to request job error information about job 1547 on the default server, enter:

$ pdls -c job \
-r "job-id current-job-state job-state-reasons \ job-state-message" 1547

If you suspect a problem with the printer device, you may be able to get additional information by requesting certain physical printer attributes.

  1. Determine which physical printer was assigned your job.

  2. Determine whether the job was assigned to a physical printer, and if so, which one.

    $ pdls -c job -r printers-assigned 1547
    

4.2    Modifying Your Print Job

Use the pdmod command to modify job and document attributes of a job that has not yet started to print.

The following guidelines apply to the pdmod command:

The following examples show pdmod commands being used to modify jobs and documents on the default server.

4.3    Pausing and Resuming Your Job

Use the pdpause command to pause a pending print job or held print job. You cannot pause a job that has started to print. When you pause a job, the job is not submitted to a physical printer for printing.

The following guidelines apply to the pdpause command:

Some examples of pdpause commands are:

Use the pdresume command to resume a job that was paused with the pdpause command. The job then becomes available for scheduling and printing.

The following guidelines apply to the pdresume command:

The following examples show the pdresume commad being used:

4.4    Resubmitting Your Job

Use the command to requeue a job for printing.

The following guidelines apply to the pdresubmit command:

The following example shows the pdresubmit command being used:

4.5    Remove Your Job

Use the pdrm command to remove (cancel) a print job.

The following guidelines apply to the pdrm command:

The following examples show the pdrm command being used: