Sample 25335: Mailing Labels and Other Forms, Chapter 26
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
These samples are from the "SAS Language and Procedures: Usage" book (No. 56075), Chapter 26.
For additional information on the samples refer to this book.
/**************************************************************/
/* S A S S A M P L E L I B R A R Y */
/* */
/* NAME: BUG26U01 */
/* TITLE: Mailing Labels and Other Forms, Chapter 26 */
/* PRODUCT: SAS */
/* SYSTEM: ALL */
/* KEYS: EXAMPLES FROM DOCUMENTATION, MAILING LABELS */
/* PROCS: FORMS SORT */
/* DATA: */
/* */
/* SUPPORT: UPDATE: */
/* REF: SAS Language and Procedures: Usage */
/* MISC: A FILENAME statement must be included to allocate */
/* an external data set for the FILE= option on */
/* PROC FORMS */
/* */
/**************************************************************/
/* For simplicity the infile statement has been removed and */
/* the raw data is being read into this step via a CARDS */
/* statement. */
data labels;
input name $ 1-20
street $ 22-42
city $ 44-64
state $ 66-67
zip $ 69-73;
cards;
Johnson, Lee. R. P. O. Box 243 Montgomery, AL 57806
Abbott, Brenda K. 568 Trillion Ct. Denver, CO 37201
Rodriquez, Juan 619 Powell Dr. Charleston, SC 71607
Stevenson, Mary K. 22 Meredith Blvd. Austin, TX 07611
Hawks, Patrick E. Rt. 1, Box 523 Taylorsville, WA 68681
Lee, Chen 123 Maple St. Raleigh, NC 27408
Weinstein, Joseph M. Rt. 4, Box 466 Dixon, IL 17191
Baskowski, Bonnie G. P. O. Box 42 Sacramento, CA 26701
;
proc sort data=labels;
by zip;
run;
proc forms data=labels;
line 1 name;
line 2 street;
line 3 city state zip;
run;
/* A FILENAME statement must be issued associating an external */
/* data set with the fileref bug26b */
filename bug26b 'your-file-name';
options ls=132;
proc forms data=labels file=bug26b align=1;
line 1 name;
line 2 street;
line 3 city state zip;
run;
/* A FILENAME statement must be issued associating an external */
/* data set with the fileref bug26c */
filename bug26c 'your-file-name';
proc forms data=labels file=bug26c align=1;
line 1 name/lastname;
line 2 street;
line 3 city state zip;
run;
/* A FILENAME statement must be issued associating an external */
/* data set with the fileref bug26d */
filename bug26d 'your-file-name';
proc forms data=labels file=bug26d align=1;
line 1 name/lastname;
line 2 street;
line 3 city state zip/pack;
run;
/* A FILENAME statement must be issued associating an external */
/* data set with the fileref bug26e */
filename bug26e 'your-file-name';
options linesize=117;
proc forms data=labels file=bug26e align=1
down=2
indent=5
lines=4
width=25
across=4
between=4
skip=2;
line 1 name/lastname;
line 2 street;
line 3 city state/pack;
line 4 zip/indent=12;
run;
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
RESULTS from first PROC FORMS
Stevenson, Mary K.
22 Meredith Blvd.
Austin, TX 07611
Weinstein, Joseph M.
Rt. 4, Box 466
Dixon, IL 17191
Baskowski, Bonnie G.
P. O. Box 42
Sacramento, CA 26701
Lee, Chen
123 Maple St.
Raleigh, NC 27408
Abbott, Brenda K.
568 Trillion Ct.
Denver, CO 37201
Johnson, Lee. R.
P. O. Box 243
Montgomery, AL 57806
Hawks, Patrick E.
Rt. 1, Box 523
Taylorsville, WA 68681
Rodriquez, Juan
619 Powell Dr.
Charleston, SC 71607
OUTPUT for BUG26b
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Stevenson, Mary K.
22 Meredith Blvd.
Austin, TX 07611
Weinstein, Joseph M.
Rt. 4, Box 466
Dixon, IL 17191
Baskowski, Bonnie G.
P. O. Box 42
Sacramento, CA 26701
Lee, Chen
123 Maple St.
Raleigh, NC 27408
Abbott, Brenda K.
568 Trillion Ct.
Denver, CO 37201
Johnson, Lee. R.
P. O. Box 243
Montgomery, AL 57806
Hawks, Patrick E.
Rt. 1, Box 523
Taylorsville, WA 68681
Rodriquez, Juan
619 Powell Dr.
Charleston, SC 71607
OUTPUT for BUG26c
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Mary K. Stevenson
22 Meredith Blvd.
Austin, TX 07611
Joseph M. Weinstein
Rt. 4, Box 466
Dixon, IL 17191
Bonnie G. Baskowski
P. O. Box 42
Sacramento, CA 26701
Chen Lee
123 Maple St.
Raleigh, NC 27408
Brenda K. Abbott
568 Trillion Ct.
Denver, CO 37201
Lee. R. Johnson
P. O. Box 243
Montgomery, AL 57806
Patrick E. Hawks
Rt. 1, Box 523
Taylorsville, WA 68681
Juan Rodriquez
619 Powell Dr.
Charleston, SC 71607
OUTPUT for BUG26d
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Mary K. Stevenson
22 Meredith Blvd.
Austin, TX 07611
Joseph M. Weinstein
Rt. 4, Box 466
Dixon, IL 17191
Bonnie G. Baskowski
P. O. Box 42
Sacramento, CA 26701
Chen Lee
123 Maple St.
Raleigh, NC 27408
Brenda K. Abbott
568 Trillion Ct.
Denver, CO 37201
Lee. R. Johnson
P. O. Box 243
Montgomery, AL 57806
Patrick E. Hawks
Rt. 1, Box 523
Taylorsville, WA 68681
Juan Rodriquez
619 Powell Dr.
Charleston, SC 71607
OUTPUT for BUG26e
XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX
Mary K. Stevenson Joseph M. Weinstein Bonnie G. Baskowski Chen Lee
22 Meredith Blvd. Rt. 4, Box 466 P. O. Box 42 123 Maple St.
Austin, TX Dixon, IL Sacramento, CA Raleigh, NC
07611 17191 26701 27408
Brenda K. Abbott Lee. R. Johnson Patrick E. Hawks Juan Rodriquez
568 Trillion Ct. P. O. Box 243 Rt. 1, Box 523 619 Powell Dr.
Denver, CO Montgomery, AL Taylorsville, WA Charleston, SC
37201 57806 68681 71607
These samples are from the "SAS Language and Procedures: Usage" book (No. 56075), Chapter 26.
For additional information on the samples refer to this book. This chapter shows you how to use the FORMS procedure; it assumes you are familiar with the SAS DATA step.
Type: | Sample |
Topic: | SAS Reference ==> Procedures ==> FORMS
|
Date Modified: | 2005-08-31 03:03:25 |
Date Created: | 2005-05-23 13:46:45 |
Operating System and Release Information
SAS System | Base SAS | All | n/a | n/a |