By
default, a PROC PRINT step lists all the variables in a data set.
You can select variables and control the order in which they appear
by using a VAR statement in your PROC PRINT step.
General form, VAR statement:
VAR variable(s);
where variable(s) is one or
more variable names, separated by blanks.
|
For example, the following VAR statement specifies that only the
variables Age, Height, Weight, and Fee be printed, in that order:
proc print data=clinic.admit;
var age height weight fee;
run;
The
procedure output from the PROC PRINT step with the VAR statement
lists only the values for the variables Age, Height, Weight, and
Fee.
In addition to selecting variables, you can control ...