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

EN Job Separation Commands 5-7
Example: Nested JOB Commands
This example shows a PCL job that was sent to spooler 1, which in
turn was sent to spooler 2 (the nested jobs are indented). Note that
the first job name is overwritten by the second job name (“Spooler 1
Job”) when the second JOB command is processed.
<ESC>%-12345X@PJL <CR><LF>
@PJL JOB NAME = "Printing Job Sent From
~Spooler 2" <CR><LF>
<ESC>%-12345X@PJL <CR><LF>
@PJL COMMENT Printing a PCL job <CR><LF>
@PJL JOB NAME = "Spooler 1 Job" <CR><LF>
@PJL SET RESOLUTION = 600 <CR><LF>
<ESC>%-12345X@PJL <CR><LF>
@PJL ENTER LANGUAGE = PCL <CR><LF>
<ESC>E . . PCL print job . .<ESC>E
~<ESC>%-12345X
~<ESC>%-12345X@PJL <CR><LF>
@PJL EOJ NAME = "End Spooler 1 Job" <CR><LF>
<ESC>%-12345X
~<ESC>%-12345X@PJL <CR><LF>
@PJL EOJ NAME = "End Spooler 2 Job" <CR><LF>
<ESC>%-12345X
Related Commands:
EOJ, USTATUS, DEFAULT