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

10-4 Job Management EN
USERNAME Variable
This variable is the user name that is obtained from user input or by
the driver through some internal method. If the job stream does not
contain a USERNAME the default value will be "NO USER NAME".
The driver is responsible for determining the size of the printer's
control panel and sending a string of appropriate length.
Example: Job Management HP LaserJet 8100
The following PJL example demonstrates job management. It creates
a secure Proof and Hold job that will print one copy and then be held
until the user selects it for printing via the control panel or JetAdmin.
<ESC>%-12345X@PJL <CR><LF>
@PJL COMMENT **Give job a name** <CR><LF>
@PJL SET JOBNAME = "Job_12345" <CR><LF>
@PJL COMMENT **Specify a user name**<CR><LF>
@PJL SET USERNAME = "Slim_Jim" <CR><LF>
@PJL COMMENT **Set Quantity to Print**<CR><LF>
@PJL SET QTY = 4 <CR><LF>
@PJL COMMENT **Specify Proof & Hold**<CR><LF>
@PJL SET HOLD = PROOF<CR><LF>
@PJL COMMENT **Specify private job**<CR><LF>
@PJL SET HOLDTYPE = PRIVATE<CR><LF>
@PJL SET HOLDKEY = "0246"<CR><LF>
@PJL ENTER LANGUAGE = POSTSCRIPT <CR><LF>
%!PS-ADOBE . . . PostScript print job . . . ^D
~<ESC>%-12345X
Value Value Description
"username string" This string is limited by the size of the
printer's control panel display. The default
value is "NO USER NAME".