Please enable JavaScript to view this site.

Manual InterForm400 English 2023

Navigation: Print output > Laser printers

User defined PJL commands

Scroll Prev Top Next More

With InterForm400 you can define to staple several pages together. You can staple several copies together via copy management or staple papers for each recipient. InterForm400 includes predefined PJL commands for stapling for many different printers, but with this option you can even design your own PJL sequences if you want to make your own PJL commands instead.

 

The PJL definitions can also be inserted as initial PJL commands in the merged spooled file.

 

You can create up to 10 different printer groups (or PJL sequences) with up to 10 PJL commands in each.

 

To define this you should select these options:

 

80. Administering InterForm400

8. Work with printer control options

4. User defined PJL

 

Below we have created a printer group 0 showing to to add our own PJL sequence for a specific printer not covered by the InterForm400:

 

First we pressed F6=Add to create the printer group:

 

 

         Work with user defined PJL                                  PJL300D  

                                                                               

Printer group . . . . .   0                                                    

Description . . . . . .   My printer                                          

                                                                               

                                                                               

                                                                               

                                                                               

                                                                               

                                                                               

                                                                               

                                                                               

                                                                               

                                                                               

                                                                               

                                                                               

                                                                               

                                                                               

                                                                               

                                                                               

                                                                               

                                                                               

F3=Exit                               F12=Cancel                

 

                                                           

Next we use F6=Add to insert the PJL sequences needed:

 

 

         Work with user defined PJL                                  PJL300D

                                                                             

Printer group . . . . . : 0                                                  

Description . . . . . . : My printer                                        

                                                                             

PJL Function  . . . . .   0                                                  

Description . . . . . .   Enable color print                                

PJL Command (variables *V01 to *V30 can be included)                                                                                  

@PJL COLOR enable ID=*V01,Password=*V02                                    

@PJL ________________________________________________________________              

@PJL ________________________________________________________________        

@PJL ________________________________________________________________        

@PJL ________________________________________________________________        

@PJL ________________________________________________________________        

@PJL ________________________________________________________________        

@PJL ________________________________________________________________        

@PJL ________________________________________________________________        

@PJL ________________________________________________________________        

                                                                             

User exit program  . . . PJLEXIT       Name, *NONE      

 Library  . . . . . . .   KSE                                                                                                        

                                                                                                                       

F3=Exit                               F12=Cancel                          

 

     

If you combine your user defined PJL definitions with a user program, then you can use up to 30 variables as indicated above.

The user program must be owned by QSECOFR and must be based on the demo source, PJLEXIT in source file APF3812/APISRC. Do not place the compiled program in the APF3812 library.

 

The demo source has these parameters:

&SPLJOB    

The name of the job, that created the input spooled file.

&SPLUSR    

The user profile, that created the input spooled file.

&SPLJNO    

The Job number of the job, that created the input spooled file.

&SPLFIL    

The name of the input spooled file.

&SPLNO    

The number of the input spooled file.

&OUTQ      

The output queue on which the new, merged spooled file will be placed.

&OUTQLIB  

The output queue library of the new, merged spooled file.

&DATEOPEN  

The date when the spooled file was created.

&TIMEOPEN  

The time when the spooled file was created.

&SYSTEMNAME

The name of the system on which the spooled file was created.

&PJLGRP    

The PJL printer group for which the program is called.

&PJLFNC    

The PJL function (within the PJL printer group), that is executed.

&RTNVAR01-&RTNVAR30

The return variables. The value returned in &RTNVAR01 is substituted with *V01, &RTNVAR02 is substituted with *V02 etc.

 

The user exit program can e.g. use either of the programs, APF3812/GETSPLFA02 and APF3812/GETSPLFATR to retrieve spooled file attributes.

 

Now you can use the PJL sequence for initial PJL commands, or for stapling either via copy management or via a stapling finishing definition, if you select U = User defined PJL.

 

TIP: If you want to find out what PJL sequences are necessary in order to e.g. staple on a specific printer, you can do this by printing to file (e.g. from Notepad) while activating stapling on the printer in question. Then open the resulting .prn file in e.g. Notepad, and now you can see the PJL commands generated. Copy the relevant PJL commands into the setup above.