![background image](http://html.mh-extra.com/html/hp/4600-color-laserjet-laser-printer/4600-color-laserjet-laser-printer_technical-reference-manual_163672052.webp)
Example: Using the
JOB Command to
Monitor Job Status
This example demonstrates a PostScript print job that is
spooled before printing. The job actually consists of three
separate sections (notice the UEL commands that bound
the three sections—the first section does not need a closing
UEL command since the printer is already in PJL mode):
The first section is sent by the spooler. These lines name
the print job and send the USTATUS command so the
spooler can monitor job status.
The next section is a PostScript job sent to the spooler
from a software application.
The last section is sent by the spooler to end the job.
When the last page is completely printed (in the output
tray), the printer returns unsolicited status information
notifying the spooler that the job is complete.
<ESC%>-12345X@PJL <CR><LF>
@PJL COMMENT **Beginning of Job ** <CR><LF>
@PJL JOB NAME = "TF’s Monitor Job" <CR><LF>
@PJL USTATUS JOB = ON <CR><LF>
<ESC>%-12345X@PJL <CR><LF>
@PJL ENTER LANGUAGE = POSTSCRIPT <CR><LF>
%!PS-ADOBE .. PostScript print job ... ^D
~
<ESC>%-12345X
~
<ESC>%-12345X@PJL <CR><LF>
@PJL EOJ NAME = "End of TF’s Job" <CR><LF>
<ESC>%-12345X
Note
If the spooler received a print job that did not use PJL (that
is, the application generated a print job that consisted of
just “%!PS-ADOBE .. PostScript print job ... ^D”, a LaserJet
printer using context-sensitive switching would still print
properly (provided PostScript is installed) and the spooler
would still receive the unsolicited job status information.
5-6 Job Separation Commands
Summary of Contents for 4600 - Color LaserJet Laser Printer
Page 18: ...1 6 Introduction to PJL ...
Page 36: ...3 8 Using PJL ...
Page 46: ...4 10 Kernel Commands ...
Page 66: ...Figure 6 1 How Environments Affect the Print Job 6 4 Environment Commands ...
Page 108: ...6 46 Environment Commands ...
Page 180: ...9 18 PJL File System Commands ...
Page 212: ...10 32 Programming Tips ...
Page 262: ...B 6 PJL Command Summary ...
Page 302: ...Glossary 10 ...