Defining Sas Options and Basic Statement Syntax
Elements of the SAS Language
- SAS statements can wrap across multiple lines.
Each statement must be ended with a semicolon ";".
- Comment lines in SAS start with an Asterisk in column 1 or use the Unix
"C" programming format of /* this is a comment */ . Comments can span multiple
lines using the C format.
- Extraneous spaces are ignored within SAS unless within quotation marks.
Using the SAS Options statement
Through the use of the SAS Options statement you can cause SAS
to customize certain setting to your own preferences. The OPTIONS
statement must be the first line of your SAS file. Here is an
example statement.
options linesize=80;
The above statement causes sas to limit line width to 80 characters instead
of the default 132. Other options that can be appended to this line include:
nocenter
pagesize=24
Other Sas Language Commands
- title ' your title' causes a title to be placed on each page.
- footnote 'your footnote' causes a footnote to placed on each page
See also:
Univ of Wisc Introduction to SAS
Author - Jack Suess
UMBC University Computing Services
Created - 1/15/96