BookmarkSubscribeRSS Feed
jp_78
Fluorite | Level 6

Does anybody know of a way to have SAS display column names and labels simultaneously in tables?  Is it possible to make this a default setting?

Thanks!_

4 REPLIES 4
LinusH
Tourmaline | Level 20

Can you explain what client you are using, SAS version etc?

Data never sleeps
jp_78
Fluorite | Level 6

I am using SAS 9.4.  I don't know what client I am using.  I don't even know what that means.  Smiley Happy  How can I find out?

Thank you.

SASKiwi
PROC Star

How are you displaying/viewing/reporting your tables? There are many ways of doing this in SAS so unless you tell us how you are doing this then it is difficult to offer any advice.

For example if you are using code then provide a sample, if you are using a SAS window, then describe how you do that and perhaps provide a screen shot.

ballardw
Super User

If you are using ViewTable, the tool that opens datasets from the explorer window, then the answer will be no.

Also since the default label for variables without labels is the variable name do you really want to see

VariableName

VarialbleName

as a column heading?

You could however make the variable name PART of the label:

label thisvar='ThisVar: longer text for label';

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 523 views
  • 3 likes
  • 4 in conversation