Chapter Contents

Previous

Next
The FORMS Procedure

Example 3: Writing Multiple Copies of a Label within a Single Set of Labels


Procedure features:
PROC FORMS statement options:
COPIES=
LINE statement options:
LASTNAME
PACK
Data set: LIST

This example writes one set of mailing labels that consists of three copies of each form unit. It selects only those observations with addresses in one of the New England states.


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

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







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



 Note about code
   where state in('ME', 'NH', 'VT', 'MA', 'CT', 'RI');
run;


Output

                                                                          
                                                                          
Theresa Gabrielli        Theresa Gabrielli        Theresa Gabrielli       
24 Ridgetop Rd.          24 Ridgetop Rd.          24 Ridgetop Rd.         
Westboro MA 01581        Westboro MA 01581        Westboro MA 01581       
                                                                          
                                                                          
Aria Clayton             Aria Clayton             Aria Clayton            
314 Bridge St.           314 Bridge St.           314 Bridge St.          
Hanover NH 03755         Hanover NH 03755         Hanover NH 03755        
                                                                          
                                                                          
Martin L. Dix            Martin L. Dix            Martin L. Dix           
4 Shepherd St.           4 Shepherd St.           4 Shepherd St.          
Norwich VT 05055         Norwich VT 05055         Norwich VT 05055        


Chapter Contents

Previous

Next

Top of Page

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