Display the variable and label names. PROC CONTENTS will display the variable
names and the labels used in the first program.
proc contents data=idlabel;
run;
Output 2
In the following output, PROC CONTENTS displays the variables and labels.
Output 61.6The Contents Procedure
Student Test Scores 2
The CONTENTS Procedure
Alphabetic List of Variables and Attributes
# Variable Type Len Label
1 Test Char 8 NAME OF FORMER VARIABLE
2 sn0545 Num 8 Capalleti
8 sn0674 Num 8 McBane
4 sn1167 Num 8 Engles
5 sn1230 Num 8 Grant
3 sn1252 Num 8 Dubose
6 sn2527 Num 8 Krupski
7 sn4860 Num 8 Lundsford
Example ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.