Previous Page | Next Page

The FSVIEW Procedure

VAR Statement

Selects which variables to display and what order to display them in.
Restriction: The FSVIEW procedure terminates with an error message if you use the VAR statement in conjunction with a PROC FSVIEW statement that includes the NEW= option.
Note: If you load an existing FORMULA entry, the variables and variable order that are recorded in the FORMULA entry take precedence over the list and order of variables that are specified in the VAR statement.
Tip: When more than one variable name is supplied, any valid form of variable list can be used. See SAS Language Reference: Concepts for details about variable lists.

VAR variable <... variable-n>;



is the name of a variable from the displayed data set.

Using the VAR Statement

By default, the FSVIEW procedure displays all the variables from the data set in the FSVIEW window and arranges the variable columns in the order in which the variables appear in the data set (except for any variables that are used as ID variables). You can use the VAR statement to control which variables appear in the FSVIEW window and in what order they appear. Columns of variable values appear in the order that is specified in the VAR statement. The number of columns that are visible at any given time depends on the width of the variable values and on the current width of the FSVIEW window.

If the same variable name appears in both the ID and VAR statements, the variable is used only as an ID variable.

During an FSVIEW session, use the SHOW and DROP commands to control the display of variables. The SHOW command can add variables to the display even if they are not listed in the VAR statement. See FSVIEW Window Commands for details.

Use the COLOR command to select the colors for displayed variables and column headings. See FSVIEW Window Commands for details.

Previous Page | Next Page | Top of Page