Previous Page | Next Page

The PRINT Procedure

VAR Statement


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:

Selecting Variables to Print

Creating a Customized Layout with BY Groups and ID Variables


VAR variable(s) </ STYLE <(location(s))> =<style-element-name><[style-attribute-specification(s)]>>;

Required Arguments

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.

Option

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.

Previous Page | Next Page | Top of Page