Intermate i5 User Manual

Page of 490
User’s Manual for InterForm400®   
175
Calling a User Exit Program with the extracted spool pages
          Change Split Definition                                      SPL310D  
                                                                                
 Split definition name  . : IF400ONLY                                           
 Description  . . . . . . : Sort IF400 Pages                                    
                                                                                
 Split detail description : IF400 ONLY                                          
                                                                                
 User exit program                                                              
   Program name . . . . . . *NONE_____    *NONE, name                           
     Library  . . . . . . .   __________  name                                  
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
 F3=Exit                                                     F12=Cancel         
This screen can be used to call a user exit program, that inserts information in the spool
entry resulting from the split.
InterForm400
®
 will call the program with a set of parameters consisting of up to either 5 or
10  lines each containing a field of up to 30 positions. The amount of exit parameters
depends on the format: 01 equals 5 exit parameters, 02 equals 10 exit parameters, 03
equals the 10 exit parameters as well as 300 character parameter, that contains all
attributes of the original spooled file.
For additional information on return parameters look into the sample programs, SPLEXIT,
SPLEXIT02 and SPLEXIT03 in the source file APISRC in library APF3812.
An example could be a customer ID which the user exit program uses to look up a fax
number in a database, which is returned to InterForm400
®
 to insert in the spool entry
resulting from the split.
          Change Split Definition                                      SPL310D  
                                                                                
 Split definition name  . : IF400ONLY                                           
 Description  . . . . . . : Sort IF400 Pages                                    
                                                                                
 Split detail description : IF400 ONLY                                          
 User exit program                                                              
   Program name . . . . . . GETFAXNR       *NONE, name                           
     Library  . . . . . . .   QGPL          name      
   Format . . . . . . . . . 02             01, 02, 03  
   When to call . . . . . . 1              1=Every page 2=When exit parm changes  
 Exit parameter data                                                            
   1. Linenbr.  13_  Position 57_ - 60_    6. Linenbr. ___   Position ___ - ___   
   2. Linenbr.  ___  Position ___ - ___    7. Linenbr. ___   Position ___ - ___  
   3. Linenbr.  ___  Position ___ - ___    8. Linenbr. ___   Position ___ - ___
   4. Linenbr.  ___  Position ___ - ___    9. Linenbr. ___   Position ___ - ___
   5. Linenbr.  ___  Position ___ - ___   10. Linenbr. ___   Position ___ - ___
 Return data is to be printed in the following positions                        
   1. Linenbr.  14_  Startposition  60_    6. Linenbr. ___ Startposition ___
   2. Linenbr.  ___  Startposition  ___    7. Linenbr. ___ Startposition ___
   3. Linenbr.  ___  Startposition  ___    8. Linenbr. ___ Startposition ___
   4. Linenbr.  ___  Startposition  ___    9. Linenbr. ___ Startposition ___
   5. Linenbr.  ___  Startposition  ___   10. Linenbr. ___ Startposition ___ 
 F3=Exit                                                     F12=Cancel