Intermate AS/400 用户手册

下载
页码 490
User’s Manual for InterForm400®   
407
program must be specified for the PAGBLDPGM parameter on the CRTPBSPLF
command.
Description of the Create PageBuilder Spooled File command, CRTPBSPLF
                    Create PageBuild Spooled File (CRTPBSPLF)                   
                                                                                
 Type choices, press Enter.                                                     
                                                                                
 PageBuilder program  . . . . . .  PAGBLDPGM    __________    Name    
   Library  . . . . . . . . . . .                 __________  Name     
 Data parameter definition:        DTAPARM     _                    
   Find 'string'  . . . . . . . .               __________    Value, *PAGE, *ANY
   String length  . . . . . . . .               *STR__        1-256, *STR 
   Return length  . . . . . . . .               *STRLEN       1-256, *STRLEN  
   Minimum line . . . . . . . . .               ______        1-255       
   Maximum line . . . . . . . . .               ______        1-255      
   Minimum starting position  . .               ______        1-378      
   Maximum starting position  . .               ______        1-378     
                + for more values              _                              
 Spooled file . . . . . . . . . .  FILE         __________    Name      
 Job name . . . . . . . . . . . .  JOB          *_________    Name, *     
   User . . . . . . . . . . . . .                 __________  Name    
   Number . . . . . . . . . . . .                 ______      000000-999999   
 Spooled file number  . . . . . .  SPLNBR             *LAST_  1-9999,*ONLY,*LAST
 Application ID parameter . . . .  APPIDPARM    _______________________________
 _______________________________________________               
 Output queue . . . . . . . . . .  OUTQ         *INPUT____    Name, *INPUT
   Library  . . . . . . . . . . .                 __________  Name, *LIBL
 Form type  . . . . . . . . . . .  FORMTYPE     *INPUT____    Character value
 Output spooled file name . . . .  SPLFNAME     *INPUT____    Name, *INPUT
         
 F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F13=How to use this display    
 F24=More keys                                                                  
  
First the CRTPBSPLF command calls the PageBuilder program (specified by the
PAGBLDPGM keyword) with parameter 1 = ‘STR’.
Then the CRTPBSPLF command reads all pages from the input spooled file
specified by the FILE, JOB and SPLNBR keywords.
For every page in the spooled file the PageBuilder program is called having
parameter 1 = ‘PAG’ and parameter DATA01-DATA10 equal to the data found on
the active page according to the values for the DTAPARM keyword - unless you
use *PAGE then the contents of the current page is transferred in an array 378
char wide by 255. 
The PageBuilder program now updates parameters (DATA01-DATA10) according
to program logic - or the array if you use *PAGE.
The CRTPBSPLF command creates a new page in a new SCS spooled file with
the updated values (DATA01-DATA10).
After processing all pages your PageBuilder program is called once more having
parameter 1=’END’
The parameters of the command are these:
PAGBLDPGM
The PageBuilder program that the command is to call for each
page. 
DTAPARM
Use this to define each of parameters DATA01-DATA10. Insert a
'+' in the first or last line to insert and define another DATA field.
Each of the DATA fields are defined like this: