Sas

Asked • 03/18/19

List only the column names of a dataset?

I am working on SAS in UNIX env and I want to view only the column name of a dataset. I have tried proc contents and proc print but both of them list a lot of other irrevelant information that I do not want as it fills up my putty screen and the information ultimately is lost. I also tried to get this thing frm the sas metadata but that is not working either. I tried : 2? proc sql; select * from dictionary.tables where libname='test' and memname='sweden_elig_file_jul'; quit; 5? NOTE: No rows were selected. 6? NOTE: PROCEDURE SQL used (Total process time): real time 0.27 seconds cpu time 0.11 seconds

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.