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

11-14 Programming Tips for Using PJL EN
Jobs That Monitor Job Progress and Confirm Job
Completion
This example enables the spooler to receive notification as each page
is finished printing, and when the entire job has finished. The
USTATUS JOB = ON command enables unsolicited job status and the
USTATUS PAGE = ON command enables page status.
<ESC>%-12345X@PJL <CR><LF>
@PJL COMMENT Monitoring Job Progress <CR><LF>
@PJL COMMENT and Completion <CR><LF>
@PJL ECHO 12:07:54.5 07-26-92 <CR><LF>
[. application discards printer status readback data
received before ECHO response .]
@PJL USTATUS JOB = ON <CR><LF>
@PJL USTATUS PAGE = ON <CR><LF>
@PJL JOB NAME = "Monitoring Job" <CR><LF>
<ESC>%-12345X@PJL <CR><LF>
@PJL ENTER LANGUAGE = PCL <CR><LF>
<ESC>E... PCL print data ...<ESC>E
~<ESC>%-12345X
~<ESC>%-12345X@PJL <CR><LF>
@PJL EOJ NAME = "End of Monitor Job" <CR><LF>
@PJL USTATUS JOB = OFF <CR><LF>
@PJL USTATUS PAGE = OFF <CR><LF>
<ESC>%-12345X
When the printer processes the JOB command, the following
unsolicited job status message is sent:
@PJL USTATUS JOB
START
NAME="Monitoring Job"
<FF>