Example 1 PPFA Commands

PAGEDEF justin replace yes
          WIDTH 8.5 in
          HEIGHT 11.0 in;
    FONT  comp  a075nc ;    /*Big Brother Bank font  */
    FONT  ital  a175dc ;    /*Italic theme           */
    FONT  addr  a075dc ;    /*Big Brother address    */
    FONT  varb  gt10   ;    /*Variable data          */
    FONT  super a075dc ;    /*Super Checking Account */
    FONT  head   a055ac;    /*Headings               */
    FONT  bhead  a075ac;    /*Bold Headings          */

PAGEFORMAT  chub1   TOPMARGIN 2 in BOTMARGIN  2 in; 
/************************************************/
/** statmid  BODY                              **/    
/************************************************/     
LAYOUT C'statmid' PAGEHEADER NEWPAGE            
			POSITION .6 in ABSOLUTE .55 in; 
 	FIELD  TEXT C'Big Brother Bank'  ALIGN LEFT                       
			FONT	comp ;   /* default to LAYOUT positioning*/       		
	FIELD  TEXT C'"We watch over you"' ALIGN LEFT                       						
			POSITION   0 NEXT            
       	FONT ital ; /*default to next line          */       
	FIELD  TEXT C'P.O. Box 1573' ALIGN LEFT                       
			POSITION   0 NEXT      
      	FONT addr ; /*default to next line          */       
	FIELD  TEXT C'Beantown, MA  02116' ALIGN LEFT                       						
			POSITION   0 NEXT                       
			FONT addr ; /*default to next line          */
   FIELD  TEXT C'Account Number:' ALIGN LEFT                       
			POSITION   4.3 in .2 in                       
			FONT head ; /*New area on right             */       
	FIELD  TEXT C'Statement Begin Date:' ALIGN LEFT           
         POSITION  4.3 in  NEXT                       
			FONT head ; /*New area on right             */       
	FIELD  TEXT C'Statement End Date:' ALIGN LEFT                       						
			POSITION  4.3 in  NEXT                       
			FONT head ; /*New area on right             */       
	FIELD  START  1 LENGTH 10 ALIGN RIGHT                       
			POSITION  7.5 in .2 in        
              	FONT varb ; /*variable - account number*/       
	FIELD  START 75 LENGTH 12                       
			POSITION  7.5 in  NEXT 
			ALIGN RIGHT /* data is missing from example */              				
			FONT varb ; /*variable - begin date         */       
	FIELD  START 88 LENGTH 12                       
			POSITION  7.5 in  NEXT                   
   		ALIGN RIGHT /* data is missing from example */                       			
			FONT varb ; /*variable - end date           */       
	FIELD  START 11 LENGTH 19 ALIGN LEFT                       
			POSITION  1.1 in  .9 in        
              	FONT varb ; /*variable - customer name */ 
   FIELD  START 30 LENGTH 19          ALIGN LEFT                      
			POSITION  1.1 in  NEXT                       
			FONT varb ; /*variable - customer address   */       
	FIELD  START 49 LENGTH 22          ALIGN LEFT         
         POSITION  1.1 in  NEXT                       
			FONT varb ; /*variable - customer city, st. */   

/************************************************/
/** statsum  BODY                              **/    
/************************************************/
LAYOUT C'statsum' BODY                       
			POSITION .6 in .5 in;   
	FIELD  TEXT C'Super Checking Account Activity'                       
			FONT super ; /* Static text - Super Checking */       			
	DRAWGRAPHIC LINE  ACROSS 7.5 IN LINEWT BOLD            
			POSITION  0  .15 in            
			copy   down 2 spaced 1 mm;       
	FIELD  TEXT C'Beginning Balance'                      
			POSITION  .3 in .4 in                       
			FONT head  ; /* Static text - first header   */       			
	FIELD  TEXT C'Credits'                       
			POSITION 2.4 in CURRENT                       
			FONT head  ; /* Static text - first header   */       			
	FIELD  TEXT C'Debits'                       
			POSITION 3.6 in CURRENT
  			FONT head  ; /* Static text - first header   */    
  	FIELD  TEXT C'Service Charge'                       
			POSITION 4.9 in CURRENT
      	FONT head  ; /* Static text - first header   */    
  	FIELD  TEXT C'Ending Balance'                       
			POSITION 6.3 in CURRENT
   		FONT head  ; /* Static text - first header   */    
  	FIELD  START  1  LENGTH  8                       
			POSITION  .6 in .6 in 
      	FONT varb  ; /* Variable text - Beg balance  */     
 	FIELD  START 10  LENGTH  8                       
			POSITION 2.2 in CURRENT
    		FONT varb  ; /* Variable text - Credits      */    
  	FIELD  START 20  LENGTH  8                       
			POSITION 3.4 in CURRENT
      	FONT varb  ; /* Variable text - Debits       */    
  	FIELD  START 30  LENGTH  5                       
			POSITION 5.0 in CURRENT
     		FONT varb  ; /* Variable text - Service Chrg */    
  	FIELD  START 40  LENGTH  8                       
			POSITION 6.5 in CURRENT
      	FONT varb  ; /* Variable text - End Balance  */    
  	DRAWGRAPHIC LINE  ACROSS 7.5 IN LINEWT BOLD                
			POSITION  0 .7 in;   

/************************************************/    
/** crheader GROUPHEADER                       **/    
/************************************************/
LAYOUT C'crheader' GRPHEADER XSPACE .2 in                      
			POSITION SAME .9 in;       
	FIELD  TEXT C'Credits'                       
			FONT bhead ; /* Static text - Credits        */       			
	FIELD  TEXT C'Description'   
        	POSITION  1.3 in   CURRENT                       
			FONT head  ; /* Stat text - Deposit Descr.   */       			
	FIELD  TEXT C'Date'       
   		POSITION  3.2 in   CURRENT                       
			FONT  head ; /* Static text - Date           */       			
	FIELD  TEXT C'Amount'        
       	POSITION  5.0 in   CURRENT                       
			FONT  head ; /* Stat text - Amount of deposit*/       
	DRAWGRAPHIC LINE  ACROSS 6.2 IN LINEWT BOLD                       
			POSITION 1.3 in next;   

/************************************************/
/** crdata   BODY                              **/    
/************************************************/
LAYOUT C'crdata' BODY  GROUP;       
	FIELD  START  1 LENGTH 13       
     		POSITION  1.3 in  CURRENT                       
			FONT  varb ; /* Variable text - Description  */       			
	FIELD  START 14 LENGTH 8     
      	POSITION  3 in  CURRENT                       
			FONT  varb ; /* Variable text - Date         */       			
	FIELD  START 24 LENGTH 8     ALIGN RIGHT                       
			POSITION  5.6 in  CURRENT                    
  			FONT  varb  ; /* Variable text - Amount       */  

/************************************************/
/** crtotal  BODY                              **/    
/************************************************/
LAYOUT C'crtotal' BODY  GROUP;       
	FIELD  TEXT C'Total Credits'    
      	POSITION  1.5 in   .2 in                       
			FONT bhead ; /* Stat text - Total credits    */       			
	FIELD  START 24 LENGTH 8   ALIGN RIGHT                       
			POSITION  7.3 in  CURRENT                    
  			FONT  varb  ; /* Variable text - Amount      */       			
	DRAWGRAPHIC LINE ACROSS 7.5 IN LINEWT BOLD                       
			POSITION   0  next;   

/************************************************/
/**  ckheader  GROUPHEADER                     **/    
/************************************************/
LAYOUT C'ckheader' GRPHEADER XSPACE .2 in                       
			POSITION  SAME .6 in;       
	FIELD  TEXT C'Checks'                       
			FONT bhead ; /* Static text - Checks         */       			
	FIELD  TEXT C'Check No.'     
        	POSITION  1.4 in   CURRENT                       
			FONT  head ; /* Stat text - Check number     */       			
	FIELD  TEXT C'Date'          
      	POSITION  2.5 in   CURRENT                       
			FONT  head  ;/* Stat text - Date of check    */       			
	FIELD  TEXT C'Amount'           
      	POSITION  3.5 in   CURRENT                       
			FONT  head  ;/* Static text - Amount of check*/       			
	FIELD  TEXT C'Check No.'        
       	POSITION  4.6 in   CURRENT                       
			FONT  head ; /* Stat text - Check number     */       			
	FIELD  TEXT C'Date'          
       	POSITION  5.6 in   CURRENT                       
			FONT  head  ;/* Stat text - Date of check    */       			
	FIELD  TEXT C'Amount'           
       	POSITION  6.8 in   CURRENT                       
			FONT  head  ;/* Static text - Amount of check*/       			
	DRAWGRAPHIC LINE  ACROSS 6.2 IN LINEWT BOLD                       
			POSITION 1.3 in next;       
	DRAWGRAPHIC LINE  DOWN LINETYPE shortdash                         
			POSITION 4.5 in CPOS;   

/************************************************/
/**  ckdatal BODY left side                    **/    
/************************************************/
LAYOUT C'ckdatal' BODY  GROUP                       
			POSITION SAME NEXT;
	FIELD  START  2 LENGTH 3                       
			POSITION 1.4 in  CURRENT
       	FONT  varb  ; /* Variable text - Check number */   
   FIELD  START 14 LENGTH 8                       
			POSITION  2.4 in  CURRENT
       	FONT  varb  ; /* Variable text - Date         */   
   FIELD  START 24 LENGTH 8  ALIGN RIGHT                       
			POSITION  4.4 in   CURRENT                       						
			FONT  varb  ; /* Variable text - Amount		*/   

/************************************************/    
/**  ckdatar BODY right side                   **/    
/************************************************/
LAYOUT C'ckdatar' BODY  GROUP                       
			POSITION SAME SAME;
  	FIELD  START  2 	LENGTH 3                       
			POSITION  4.6 in  CURRENT
     		FONT  varb  ; /* Variable text - Check number */   
   FIELD  START 14 LENGTH 8                       
			POSITION  5.6 in  CURRENT
      	FONT  varb  ; /* Variable text - Date         */   
   FIELD  START 24 LENGTH 8   ALIGN RIGHT                       
			POSITION 7.5 in  CURRENT                       
			FONT  varb  ; /* Variable text - Amount       */  

/************************************************/    
/** cktotal  BODY                              **/    
/************************************************/
LAYOUT C'cktotal' BODY  GROUP;       
	ENDGRAPHIC LPOS;  /*ends dashed line between checks */       			
	FIELD  TEXT C'Total Checks'      
       	POSITION  1.5 in   .2 in                       
			FONT bhead ; /* Stat text - Total checks      */       			
	FIELD  START 24 LENGTH 8  ALIGN RIGHT                       
			POSITION  7.3 in  CURRENT                    
  			FONT  varb  ; /* Variable text - Amount       */       			
	DRAWGRAPHIC LINE ACROSS 7.5 IN LINEWT BOLD                       
			POSITION   0   next;   

/************************************************/
/** balhead  GROUPHEADER                       **/    
/************************************************/
LAYOUT C'balhead' GRPHEADER XSPACE .2 in                       
			POSITION SAME .6 in;       
	FIELD  TEXT C'Daily'                       
			FONT bhead ; /* Static text - Daily Balance  */       			
	FIELD  TEXT C'Date'           
       	POSITION  1.3 in   CURRENT                       
			FONT  head  ;/* Stat text - Date of balance  */       			
	FIELD  TEXT C'Balance'          
      	POSITION  2.8 in   CURRENT                       					
			FONT  head  ;/* Static text - Balance        */       		
	FIELD  TEXT C'Date'             
        	POSITION  4.3 in   CURRENT                       						
			FONT  head  ; / Stat text - Date of balance  */       			
	FIELD  TEXT C'Balance'             
      	POSITION  5.8 in   CURRENT                       
			FONT  head  ; /*Static text - Balance        */       			
	FIELD  TEXT C'Balances'            
      	POSITION  0  NEXT                       
			FONT bhead  ; /*Static text - Daily Balance  */       			
	DRAWGRAPHIC LINE  ACROSS 6.2 IN LINEWT BOLD
      	POSITION 1.3 in CPOS; 

/************************************************/
/** baldatal BODY  left side                   **/    
/************************************************/
LAYOUT C'baldatal' BODY  GROUP                       
			POSITION SAME  NEXT;
	FIELD  START 14 LENGTH 8                       
			POSITION 1.3 in  CURRENT
      	FONT  varb  ; /* Variable text - Date        */   
   FIELD  START 24 LENGTH 8    ALIGN RIGHT                       
			POSITION 3.6 in  CURRENT                       
			FONT  varb  ; /* Variable text - Amount      */

/************************************************/    
/** baldatar BODY  right side                  **/    
/************************************************/
LAYOUT C'baldatar' BODY GROUP                       
			POSITION SAME  SAME;
 	FIELD  START 14 LENGTH 8                       
			POSITION 4.3 in  CURRENT
        	FONT  varb  ; /* Variable text - Date        */   
   FIELD  START 24 LENGTH 8   ALIGN RIGHT                       
			POSITION 6.6 in  CURRENT                       
			FONT  varb  ; /* Variable text - Amount      */   

/************************************************/    
/** baltotal BODY                              **/    
/************************************************/
LAYOUT C'baltotal' BODY GROUP;       
	FIELD  TEXT C'Final Balance'   
       	POSITION  1.5 in   .2 in                       
			FONT bhead ; /* Stat text - Final balance     */       		
	FIELD  START 24 LENGTH 8    ALIGN RIGHT                       
			POSITION  7.3 IN CURRENT                     
 			FONT  varb  ; /* Variable text - Amount       */  

/************************************************/
/** statrail BODY                              **/    
/************************************************/
LAYOUT C'statrail' BODY                   
			POSITION SAME .4 in;       
	DRAWGRAPHIC LINE  ACROSS 7.5 IN LINEWT BOLD                   
			POSITION 0 CPOS;       
	FIELD TEXT C'Interest Rate '               
			POSITION  2.0 in NEXT              
       	FONT bhead ; /* Static text - Interest rate  	*/       		
	FIELD  TEXT C'As of 01/04  * * *  5.321%'               
			POSITION  CURRENT CURRENT    
       	FONT varb ;  /* Static text                  */       			
	DRAWGRAPHIC LINE  ACROSS 7.5 IN LINEWT BOLD              
			POSITION 0  NEXT            
		 copy down 2 spaced 1 mm;   

/************************************************/
/** pgenum   PAGE NUMBER                       **/    
/************************************************/
LAYOUT C'pgenum' PAGETRAILER                   
			POSITION SAME ABSOLUTE 10.7 in;       
	FIELD  TEXT C 'Page '              
			POSITION 6.5 in CURRENT
       	FONT  varb;/* placement of page number     	*/    
  	FIELD  PAGENUM PRINT RESET 1 /* request page numbering*/        
     		FONT  varb /* placement of page number     	*/            				
			POSITION CURRENT CURRENT;