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

5-14 Job Separation Commands EN
End of Job Notification
Near the end of the PJL job, the application should send the EOJ
command as described in this chapter. If unsolicited job status is
enabled when the last page of the job is delivered to the output bin,
the printer responds to the EOJ command with an @PJL USTATUS
JOB END response. If JOB ID reporting is enabled, the response
includes a printer-generated ID number associated with the PJL job
name provided in the EOJ command. The response also contains a
RESULT field. All possible values for the RESULT are shown in the
following table:
Using the previous example, if the printer receives the following
command containing the same job name as in the JOB command:
@PJL EOJ NAME = "job name"
If unsolicited job status and job ID reporting are enabled, the printer
would use the ID number associated with that job name and respond
with:
@PJL USTATUS JOB<CR><LF>
END<CR><LF>
NAME="job name"<CR><LF>
PAGES=123<CR><LF>
ID=346<CR><LF>
RESULT=OK
<FF>
If the job had been cancelled instead of completed, the printer would
respond with the same message except the RESULT value would be
different.
RESULT Value Description
OK The last page of the job was sent
to the output bin.
USER_CANCELED The job was canceled from the
control panel.
HOST_CANCELED The job was canceled from a host
system.
RESOURCE_CANCELED The job was canceled because a
resource was not available (for
example, the media was not
loaded).