Intermate iSeries User Manual

Page of 490
User’s Manual for InterForm400®   
167
Using a “TEMPLATE” AFC defintion
As all printers being used together with InterForm400
®
 has to have an AFC-definition
defined, the use of a TEMPLATE AFC definition is very useful. A lot of the printers being
monitored by AFC, will often have the same requirements in terms of which spool files are
to be merged with which overlays.
In the following example we delete the AFC entries made for AFC definition
AFC_INPUT1, even  though the use of a template definition will also work when AFC
entries is made in the main AFC defintion. The template AFC entries will always be
executed after the AFC entries made in the main AFC definition.
 
                    Update Auto Forms Control Definition               AFC302D  
                                                                                
 Output queue . . . . . . :  AFC_INPUT1                                         
   Library  . . . . . . . :    APF3812                                          
                                                                                
 Type choices and then press Enter. Press F3 or F12 to exit.                    
   Description  . . . . . . . .  Job for sample printout                        
   Autostart job  . . . . . . .  Y                (Y N)                         
   Code page  . . . . . . . . .  *SYSVAL          Number, *SYSVAL      F4=List  
                                                                                
   Default output output queue and printer type                                 
   Output queue . . . . . . . .  AFC_OUT1                                       
     Library  . . . . . . . . .    APF3812                                      
   InterForm 400 printer type .  HP4_PJL                                          
     Interface  . . . . . . . .    ASCII850                                     
                                                                                
   Optional template AFC-definition to be executed after this definition        
   Output queue . . . . . . . .  TEMPLATE__            
     Library  . . . . . . . . .    QGPL______                                
                                                                                
                                                                                
                                                                                
 F3=Exit      F4=Prompt          F10=Additional parameters   F12=Cancel         
                                                                                
Rather than making the same AFC entries for a lot of simular monitored output queues,
we create an AFC defintion with entries, which will operate as a template for other AFC
definitions:
Create an output queue without a device attached.:
CRTOUTQ QGPL/TEMPLATE
Create an AFC definition as per below,  using option 1. Functions attached to output
queue from the AFC menu option 5. Work with Auto Forms Control. Press F6 to create.
                    Update Auto Forms Control Definition               AFC302D  
                                                                                
 Output queue . . . . . . :  TEMPLATE__                                         
   Library  . . . . . . . :    QGPL______                                   
                                                                                
 Type choices and then press Enter. Press F3 or F12 to exit.                    
   Description  . . . . . . . .  Template AFC-definition___________________ 
   Autostart job  . . . . . . .  Y                (Y N)                         
   Code page  . . . . . . . . .  *SYSVAL          Number, *SYSVAL      F4=List  
                                                                                
   Default output output queue and printer type                                 
   Output queue . . . . . . . .  TEMPLATE__                                     
     Library  . . . . . . . . .    QGPL______                                   
   InterForm 400 printer type .  HP4_PJL___                                     
     Interface  . . . . . . . .    ASCII850                                     
                                                                                
   Optional template AFC-definition to be executed after this definition        
   Output queue . . . . . . . .  __________                              
     Library  . . . . . . . . .    __________                     
                                                                                 
                                                              
 F3=Exit      F4=Prompt          F10=Additional parameters   F12=Cancel