BookmarkSubscribeRSS Feed
Lombardc1
Calcite | Level 5
Hi there, could someone please help me with the structure of the answer to the following question: Calculate SEX frequencies(variable SEXCDL) and percent of total frequency based on the rawdata.demog dataset. Save results in ascending frequency order as d_freq in derived library. Dont print results in output window.
4 REPLIES 4
ballardw
Super User

This sounds a lot like homework. So I'm going to suggest looking at the documentation for Proc Freq statement, out=option on a Tables statement and Proc Sort.

 

 

Lombardc1
Calcite | Level 5
Hi thank you for response. Not homework:-). I am doing this for my own research as BA and are in process to experience with SAS.
HB
Barite | Level 11 HB
Barite | Level 11

Throw out a small sample data set, the results you want (even if just a description), and what you have tried.

Reeza
Super User

@Lombardc1 wrote:
Hi thank you for response. Not homework:-). I am doing this for my own research as BA and are in process to experience with SAS.

Post what you've tried. We'll be happy to help you debug. The basics is PROC FREQ are straightforward and there are many examples online. 

 

If you're training for a BA the process to a solution is just as important. 

List the requirements. 

Explore your options

Pilot a solution

Implement solution

 

For programming solutions I recommend breaking it into pseudocode at least. 

 

 

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
  • 384 views
  • 0 likes
  • 4 in conversation