BookmarkSubscribeRSS Feed
n6
Quartz | Level 8 n6
Quartz | Level 8
I know there is code (and I use it) to tell SAS whether to use the label on one-way PROC FREQ output or whether to use the variable name instead. But here's the (admittedly minor) problem.

One time I'll want to use labels on one-way FREQ output so I'll run the code. Then later I'll be using different data that has no labels and for which having the variable names out the output is fine with me. But since there are no labels, I get no information on the FREQ output...no labels _and_ no variable names. And so I have to go and change the code to tell SAS to show variable names on one-way FREQ output. Then at some point after that I'm doing one-way FREQs on variables that have labels and I have to go and re-run the code _again_ to tell SAS to use labels on one-way FREQ output. Etc.

Is there a way to tell SAS "For one-way PROC FREQ output, use labels if there are labels, or if there are no labels then use variable names?"
1 REPLY 1
stateworker
Fluorite | Level 6
Would you share your code that you use for using the labels for one-way PROC FREQs? Thanks.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 690 views
  • 0 likes
  • 2 in conversation