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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 494 views
  • 3 likes
  • 4 in conversation