Selects variables that appear in the
report and determines their
order.
Tip: |
If you omit the VAR statement, PROC PRINT prints
all variables in the data set.
|
Featured in: |
|
VAR variable(s) </ STYLE
<(location(s))> =<style-element-name><[style-attribute-specification(s)]>>;
|
- variable(s)
-
identifies the variables to print. PROC PRINT prints the
variables in the order that you list them.
Interaction: |
In the PROC PRINT output, variables
that are listed in the ID statement precede variables that are listed in the
VAR statement. If a variable in the ID statement also appears in the VAR statement,
the output contains two columns for that variable. |
- STYLE
<(location(s))>=<style-element-name><[style-attribute-specification(s)]>
-
specifies the style element to use for all
columns that are created by a VAR statement. For information about the arguments
of this option and how it is used, see STYLE in the PROC PRINT statement.
Tip: |
To specify different style elements for
different columns, use a separate VAR statement to create a column for each
variable and add a different STYLE option to each VAR statement. |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.