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!_
Can you explain what client you are using, SAS version etc?
I am using SAS 9.4. I don't know what client I am using. I don't even know what that means. How can I find out?
Thank you.
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.
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';
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.