Syntax, OPTIONS statement:
OPTIONS options;
|
CENTER | NOCENTER
|
controls whether output
is centered or left-justified. The default is CENTER.
|
DATE | NODATE
|
controls whether or
not today’s date appears at the top of each page of output.
The default is DATE.
|
NUMBER | NONUMBER
|
controls whether or
not page numbers appear on each page of SAS output. The default is
NUMBER.
|
ORIENTATION= orientation
|
specifies the orientation
for printing output, either LANDSCAPE or PORTRAIT. The default is
PORTRAIT.
|
PAGENO= n
|
starts numbering output
pages with n. The default is
1.
|
RIGHTMARGIN= n
|
specifies the size of
the margin (such as 0.75in or 2cm) to be used for printing output.
The default is 0.00in.
|
LEFTMARGIN= n
|
|
TOPMARGIN= n
|
|
BOTTOMMARGIN= n
|
options yearcutoff=1925;
1926
.
Date Expression
|
Displayed Value
|
---|---|
12/07/41
|
12/07/1941
|
18Dec15
|
18Dec2015
|
04/15/30
|
04/15/1930
|
15Apr95
|
15Apr1995
|
options yearcutoff=1950;
Date Expression
|
Displayed Value
|
---|---|
12/07/41
|
12/07/2041
|
18Dec15
|
18Dec2015
|
04/15/30
|
04/15/2030
|
15Apr95
|
15Apr1995
|
Syntax, FIRSTOBS=, and
OBS= options in an OPTIONS statement:
FIRSTOBS=n
OBS=n
|
options firstobs=10;
proc print data=clinic.heart;
run;
options firstobs=1 obs=10;
proc print data=clinic.heart;
run;
options firstobs=10 obs=15;
proc print data=clinic.heart;
run;
Here is the output:options obs=max;
options firstobs=10 obs=15; proc print data=clinic.heart; run;
options firstobs=10 obs=15;
proc print data=clinic.heart(firstobs=20 obs=30);
run;