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.
Throw out a small sample data set, the results you want (even if just a description), and what you have tried.
@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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.