Previous Page | Next Page

The CONTENTS Procedure

Syntax: CONTENTS Procedure


Restriction: You cannot use the WHERE option to affect the output because PROC CONTENTS does not process any observations.
Tip:
Tip: You can use the ATTRIB, FORMAT, and LABEL statements.
Tip: You can use data set options with the DATA=, OUT=, and OUT2= options.
Tip: Complete documentation for the CONTENTS statement and the CONTENTS procedure is in CONTENTS Statement.
See: CONTENTS Procedure under Windows UNIX z/OS OpenVMS
Table of Contents: The CONTENTS Procedure

PROC CONTENTS <option-1 <...option-n>>;

Note:   

The links in the following table are to the DATASETS procedure documentation, which explains these options.  [cautionend]

Task Option
List the contents of one or more SAS data sets and print the directory of the SAS library PROC CONTENTS
Print centiles information for indexed variables CENTILES
Specify the input data set DATA=
Include information in the output about the number of observations, number of variables, number of indexes, and data set labels DETAILS|NODETAILS
Print a list of the SAS files in the SAS library DIRECTORY
Print the length of a variable's informat or format FMTLEN
Restrict processing to one or more types of SAS files MEMTYPE=
Suppress the printing of individual files NODS
Suppress the printing of the output NOPRINT
Print a list of variables in various order ORDER=
Specify the name for an output data set OUT=
Specify the name of an output data set to contain information about indexes and integrity constraints OUT2=
Print abbreviated output SHORT
Print a list of the variables by their position in the data set. By default, the CONTENTS statement lists the variables alphabetically. VARNUM

Note:   

The ORDER= option does not affect the order of the OUT= and OUT2= data sets.  [cautionend]

Previous Page | Next Page | Top of Page