Job Recovery
PJL provides job recovery capability using the following
combination of commands:
The JOB and EOJ commands are used to reset the page
count and inform the printer of the boundaries for the
job—its beginning and end.
The USTATUS PAGE command is used to determine
how many pages are completely printed.
If you must reprint a portion of a job, the spooling
application can re-issue the job using the START option to
specify the remaining portion of the job.
The following PJL job shows an example that provides job
recovery if a problem occurs. Notice that the USTATUS
JOB and USTATUS PAGE commands are sent prior to the
JOB command. If a power failure or another problem
interrupts the job, the unsolicited page status indicates the
last completely printed page.
Note
The USTATUS JOB command is not strictly required for
job recovery. However, it is useful for tracking jobs by name,
not just page number. The following example uses the
command to show the difference between the page count
returned by the unsolicited job status and the unsolicited
page status.
Sending the Initial
Job
<ESC>%-12345X@PJL <CR><LF>
@PJL COMMENT Providing for Recovery <CR><LF>
@PJL USTATUS JOB = ON <CR><LF>
@PJL USTATUS PAGE = ON <CR><LF>
@PJL JOB NAME = "1st Shot" <CR><LF>
@PJL ENTER LANGUAGE = PCL <CR><LF>
<ESC>E ... 100-page PCL job ... <ESC>E
~
<ESC>%-12345X@PJL <CR><LF>
@PJL EOJ NAME = "End of 1st Shot" <CR><LF>
<ESC>%-12345X
7-44 Status Readback Commands
Содержание 4600 - Color LaserJet Laser Printer
Страница 18: ...1 6 Introduction to PJL ...
Страница 36: ...3 8 Using PJL ...
Страница 46: ...4 10 Kernel Commands ...
Страница 66: ...Figure 6 1 How Environments Affect the Print Job 6 4 Environment Commands ...
Страница 108: ...6 46 Environment Commands ...
Страница 180: ...9 18 PJL File System Commands ...
Страница 212: ...10 32 Programming Tips ...
Страница 262: ...B 6 PJL Command Summary ...
Страница 302: ...Glossary 10 ...