4    Managing your Print Job

4.1    Checking the Status of Your Job

Use the pdq command to request a list of jobs that you submitted to a logical printer. This information can cover one or all jobs you have submitted and 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, use the pdq command:

% pdq

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

% 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. The following table 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 may resubmit the print job.
terminating The job has been canceled. The supervisor is terminating its connection to the physical printer.

4.1.2    Obtaining 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

If you want 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 the 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 instead of wrapping to the width of your window, which is harder to read.

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

4.1.3    Checking for Job Errors

If your job has not printed correctly, for any reason, you may 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, you can enter a command like the following:

% 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. First, determine which physical printer was assigned your job. Using the above example, the following command determines whether the job was assigned to a physical printer, and if so, which one.

% pdls -c job -r printers-assigned 1547

If a printer name is displayed, for example, bulldog2_pp, use a pdls command like the following to request information about that physical printer.

% pdls -c printer -r "printer-state printer-problem-message" bulldog2_pp

If no name was returned for the value of the printers-assigned attribute, then the job has not yet been scheduled to print. If the state is pending, there might be a job or document attribute that cannot be satisfied with the current set of physical printers. You may need to request help from an administrator, and check that all required printer attributes are supported and ready. Once an appropriate physical printer is available, your job should print.

4.2    Modifying Your 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.

To change the copy count to 4 for job 112 on dogear_spl, enter:

% pdmod -n 4 dogear_spl:112

To modify the job retention period to 60 minutes for job 113 on the default spooler, enter:

% pdmod -x "job-retention-period=60" 113

To change the default medium for the first document of job 127 on the default spooler, enter:

% pdmod -x "default-medium=a" 127.1

4.3    Pausing and Resuming Your Job

Use the pdpause command to pause a pending or held print job. You cannot pause a job that has already 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:

To pause job 1023, which is waiting to be printed on the default logical printer, enter:


% pdpause 1023

To pause job 1153 on dogear_spl, enter:

% pdpause dogear_spl:1153

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:

Some examples of pdresume commands are:

To resume job 123, which was submitted to the default printer and then paused, enter:

% pdresume 123

To resume job 1153 on dogear_spl, use:

% pdresume dogear_spl:1153

4.4    Resubmitting Your Job

Use the pdresubmit command to resend a job to another printer on the same spooler.

The following guidelines apply to the pdpause command:

An example of the pdresubmit command is:

To resubmit jobs 2000 and 2001 on the default server to logical printer pawprint, type:

% pdresubmit pawprint 2000 2001

4.5    Canceling Your Job

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

The following guidelines apply to the pdrm command:

Examples of the pdrm command follow:

To cancel and delete job 2000 from the default server, enter:

% pdrm 2000

To cancel job 2001 on server dogear_spl, and retain the document data for one hour, enter:

% pdrm -r 60 dogear_spl:2001