Chapter Contents

Previous

Next
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 and Creating a Customized Layout with BY Groups and ID Variables


VAR variable(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.


Chapter Contents

Previous

Next

Top of Page

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.