Chapter Contents

Previous

Next
The FORMS Procedure

Example 2: Printing Two Sets of Mailing Labels


Procedure features:
PROC FORMS statement options:
ALIGN=
CC
FILE=
NDOWN=
SETS=
Data set:
LIST

This example uses page mode and SETS= to produce two sets of mailing labels. Each sheet of labels holds four rows of two labels.


Program
 Note about code
filename labels 'external-file'; 

options nodate pageno=1 linesize=80 pagesize=60 ;
 Note about code
proc forms data=list file=labels
           ndown=4
           cc
           width=24
           across=2
           between=20
           down=2
           skip=3
           align=0
           sets=2;









 Note about code
   line 1 name;
   line 2 street;
   line 3 city state zip / pack;
run;


Output

                                                                    
                                                                    
Gabrielli, Theresa                          Clayton, Aria           
24 Ridgetop Rd.                             314 Bridge St.          
Westboro MA 01581                           Hanover NH 03755        
                                                                    
                                                                    
                                                                    
Dix, Martin L.                              Slater, Emily C.        
4 Shepherd St.                              2009 Cherry St.         
Norwich VT 05055                            York PA 17407           
                                                                    
                                                                    
                                                                    
Ericson, Jane                               An, Ing                 
211 Clancey Court                           95 Willow Dr.           
Chapel Hill NC 27514                        Charlotte NC 28211      
                                                                    
                                                                    
                                                                    
Jacobson, Becky                             Misiewicz, Jeremy       
7 Lincoln St.                               43-C Lakeview Apts.     
Tallahassee FL 32312                        Madison WI 53704        
                                                             
Ahmadi, Hafez                               Archuleta, Ruby         
5203 Marston Way                            Box 108                 
Boulder CO 80302                            Milagro NM 87429        
                                                            
                                                                    
Gabrielli, Theresa                          Clayton, Aria           
24 Ridgetop Rd.                             314 Bridge St.          
Westboro MA 01581                           Hanover NH 03755        
                                                                    
                                                                    
                                                                    
Dix, Martin L.                              Slater, Emily C.        
4 Shepherd St.                              2009 Cherry St.         
Norwich VT 05055                            York PA 17407           
                                                                    
                                                                    
                                                                    
Ericson, Jane                               An, Ing                 
211 Clancey Court                           95 Willow Dr.           
Chapel Hill NC 27514                        Charlotte NC 28211      
                                                                    
                                                                    
                                                                    
Jacobson, Becky                             Misiewicz, Jeremy       
7 Lincoln St.                               43-C Lakeview Apts.     
Tallahassee FL 32312                        Madison WI 53704        
                                                    
                                                                    
Ahmadi, Hafez                               Archuleta, Ruby         
5203 Marston Way                            Box 108                 
Boulder CO 80302                            Milagro NM 87429        


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.