Hi,
in order to see a list of variable names of a dataset I would suggest to use the PROC CONTENTS. This procedure provides a lot of information related to a table and shows also the list of variables (and variable properties)
https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1hqa4dk5tay0an15nrys1iwr5o2.htm
in order to obtain the count of values for a column I would suggest to use the PROC FREQ.This procedure creates a report with frequency counts and can be used for both numeric and character variables,
https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/procstat/procstat_freq_syntax01.htm,
Best regards
... View more