DATA Step, Macro, Functions and more

listing variable names from a table

Accepted Solution Solved
Reply
Contributor
Posts: 22
Accepted Solution

listing variable names from a table

Hello generous SAS community members,

 

I have a question about listing variable names(as opposed to label names) from a table. In the attached image file, I have a table from crsplib.asix. In the table, each column is represented with label, but I do not want to double click each colum to figure out its name which I can actually use in SAS editor. Is there any simple statement that lists the variable names from a specific table?

 

Thank you very much for your help all the time.

 

Leon


name.png

Accepted Solutions
Solution
‎10-26-2016 05:38 PM
Super User
Posts: 10,543

Re: listing variable names from a table

In base SAS yu can click on View in the top menu and select "Column names".

 

If you always want names you can change the default behavior by altering the properties of a system option.

View solution in original post


All Replies
Solution
‎10-26-2016 05:38 PM
Super User
Posts: 10,543

Re: listing variable names from a table

In base SAS yu can click on View in the top menu and select "Column names".

 

If you always want names you can change the default behavior by altering the properties of a system option.

Contributor
Posts: 22

Re: listing variable names from a table

Thank you!

That was very helpful.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 194 views
  • 0 likes
  • 2 in conversation