Requesting Contents Information about SAS Data Sets
Using the DATASETS Procedure for SAS Data Sets
To look at the contents of a SAS
data set without displaying the observations, use the CONTENTS statement
in the DATASETS procedure. The CONTENTS statement and its options
provide descriptive information about data sets and a list of variables
and their attributes.
Listing the Contents of One Data Set
The SAS library USCLIM contains
four data sets. The data set TEMPCHNG contains data for extreme changes
in temperature. The following program displays the variables in the
data set TEMPCHNG:
proc datasets library=usclim memtype=data;
contents data=tempchng;
run;
The output from the CONTENTS statement produces information about the TEMPCHNG data ...
Get Step-by-Step Programming with Base SAS 9.4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.