HP PCL/PJL reference - Printer Job Language Technical Reference Manual

7-44 Status Readback Commands EN
After Job Failure
Once the spooler senses that the job failed (in this case, due to a
power failure), the job can be recovered by resending it using the JOB
command with the START option. Set the page number in the START
option to the number of the last page printed plus 1. For instance, in
the previous example, if a power failure occurred after page 25
completely printed, you set the START option to start printing on page
26 (see below). In this case, the printer processes the first 25 pages
in non-printing mode, and then prints from page 26 through the end of
the job.
<ESC>%-12345X@PJL <CR><LF>
@PJL COMMENT Recovering Crashed Job <CR><LF>
@PJL USTATUS JOB = ON <CR><LF>
@PJL USTATUS PAGE = ON <CR><LF>
@PJL JOB NAME = "2nd Try" START = 26 <CR><LF>
@PJL ENTER LANGUAGE = PCL <CR><LF>
<ESC>E ...Same 100-page PCL job ...<ESC>E
~<ESC>%-12345X@PJL <CR><LF>
@PJL EOJ NAME = "End of Recovery" <CR><LF>
<ESC>%-12345X
In the job above, the first unsolicited page status message is sent
after page 26 lands in the output tray. For an HP LaserJet 4 printer,
the response appears as shown below. Other PJL printers may
respond differently.
@PJL USTATUS PAGE<CR><LF>
26<CR><LF>
<FF>