Chapter Contents

Previous

Next
LIST

LIST



Lists information about the variables to be loaded

Optional statement
Applies to: New and existing database


Syntax
Details

Syntax

LIST list-selection;


Details

The LIST statement causes a list of information to be displayed for all input variables, along with the current options, such as key or non-key and level number. The default destination of the list is the SAS log. The list-selection can be one or more of the following:
ALL causes all information for the load to be listed.
FIELDS| ITEMS causes all SYSTEM 2000 items for the load to be listed. ITEMS is equivalent to FIELDS.
variable-identifier causes only one line to be listed, with the information about the specified variable.

The variable-identifier can be either the SAS variable name or the positional equivalent in the LIST output, which is the number that represents the variable's place in the data file. For example, if you want to list the information for the item associated with the third SAS variable, issue the following statement:

     list 3; 

You can use one or more of these options in the LIST statement in any order. Here is an example:

      list 3 fields 4; 

This statement lists the information for the third SAS variable, followed by all the items in the data file, followed by the information for the fourth SAS variable.


Chapter Contents

Previous

Next

Top of Page

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