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

EN Job Separation Commands 5-15
Job Cancellation Unsolicited Status
As soon as the printer receives notification that a job is cancelled, the
printer provides the @PJL USTATUS JOB CANCELED message to
the driver/spooler if unsolicited job status is enabled. Using the same
job name and ID number as the previous example, the printer's
response would be:
@PJL USTATUS JOB<CR><LF>
CANCELED<CR><LF>
NAME="job name"<CR><LF>
ID=346<CR><LF>
RESULT=USER_CANCELED
<FF>
The job name provided in the NAME option of the PJL USTATUS JOB
CANCELED response is the current job name if a current job name is
available. The current job name is the job name retained in the printer
at the time the last PJL JOB command was processed. The current
job name could also have been supplied and/or modified using
PostScript.
If a job name is supplied in the EOJ command and if unsolicited job
status is enabled at the time the EOJ command is parsed, the NAME
option of the PJL USTATUS JOB CANCELED response will contain
the job name assigned in the EOJ command. Otherwise, the NAME
line is eliminated from the response.