The FORMS Procedure for SAS 9.1
Original Publication Date: 2004-Dec-31
Included in the Prior Art Database: 2015-Sep-20
SAS Institute Inc.
Page 01 of 23
Page 02 of 23
The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2004. Proc FORMS. Cary, NC: SAS Institute Inc.
Copyright © 2004, SAS Institute Inc., Cary, NC, USA
All rights reserved. Produced in the United States of America. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, or otherwise, without the prior written permission of the publisher, SAS Institute Inc.
U.S. Government Restricted Rights Notice. Use, duplication, or disclosure of this software and related documentation by the U.S. government is subject to the Agreement with SAS Institute and the restrictions set forth in FAR 52.227-19 Commercial Computer Software-Restricted Rights (June 1987).
SAS Institute Inc., SAS Campus Drive, Cary, North Carolina 27513.
1st printing, February 2004
SAS Publishing provides a complete selection of books and electronic products to help customers use SAS software to its fullest potential. For more information about our e-books, e-learning products, CDs, and hard-copy books, visit the SAS Publishing Web site at support.sas.com/pubs or call 1-800-727-3228.
SAS® and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.
Other brand and product names are registered trademarks or trademarks of their respective companies.
Page 03 of 23
4 The FORMS Procedure 1
Overview: FORMS Procedure 1 Syntax: FORMS Procedure 3
Concepts: FORMS Procedure 9 Examples: FORMS Procedure 11
Page 04 of 23
Page 05 of 23
C H A P T E R
Overview: FORMS Procedure 1
Syntax: FORMS Procedure 3
PROC FORMS Statement 3
BY Statement 7
FREQ Statement 7
LINE Statement 8
Concepts: FORMS Procedure 9
Form Layout 9
Modes of Operation 10
PROC FORMS Operation Modes 10
In Continuous Mode, PROC FORMS Always Writes to an External File 10
In Page Mode, PROC FORMS Can Write Either to an External File or to the Procedure
Output File 10
Examples: FORMS Procedure 11
Example 1: Printing a Single Form Unit for Each Observation 11
Example 2: Printing Two Sets of Mailing Labels 14
Example 3: Writing Multiple Copies of a Label within a Single Set of Labels 16
Overview: FORMS Procedure
The FORMS procedure produces labels for envelopes, mailing labels, external tape labels, file cards, and any other printer forms that have a regular pattern.
For each observation in the input SAS data set, PROC FORMS prints data in a rectangular block called a form unit. For example, a mailing label is a form unit.
Output 1.1 illustrates a simple mailing list produced with PROC FORMS. The statements that produce the output follow. The OBS= data set option limits to six the number of observations that PROC FORMS processes.
options pagesize=60 linesize=64 nodate
filename labels 'external-file';