Note that output from the CONTENTS statement varies for different operating
The following list describes information that you might find when you use the
CONTENTS statement with PROC DATASETS:
The DATASETS Procedure heading
contains field names. Fields are empty if they do not apply to the data set. Field
names are listed below:
Data Set Name
specifies the two-level name that is assigned to the data set.
specifies the type of library member.
specifies the access method that SAS uses to read from or write to the data set.
specifies the date on which the data set was created.
specifies the last date that the data set was modified.
indicates whether the data set is password protected for READ, WRITE, or
Data Set Type
applies only to files with the member type DATA. Information in this field
indicates that the data set contains special observations and variables for use with
SAS statistical procedures.
specifies the descriptive information that you supply in a LABEL= data set
option to identify the data set.
specifies the form in which data is stored in a particular operating environment.
specifies a mapping of a coded character set to code values. Each character in a
character set maps to a unique numeric representation.
specifies the total number of observations that are currently in the data set.
specifies the number of variables in the data set.
specifies the number of indexes for the data set.
specifies the length of each observation in bytes.
specifies the number of observations that are marked for deletion, if applicable.
indicates whether the data has fixed-length or variable-length records. If the data
set is compressed, then additional fields indicate whether new observations are
added to the end of the data set or written to unused space within the data set. It
706 Chapter 37 • Getting Information about Your SAS Data Sets