BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
AVUH777
Obsidian | Level 7

Forgot to add that I grouped by grade_level before calculating frequencies. I'm not looking for an exact way to create the report. Just an idea to eliminate the hand calculations and create a similarly formatted report.

ballardw
Super User

An example that creates a report of similar structure using a SAS supplied data set you should be able to use:

proc tabulate data=sashelp.class;
   class sex age;
   tables age,
          sex=''*n='' all=''*(n='Total' pctn='%')
          /misstext=' '
   ;
run;

The ='' bits are suppressing default  labels.

Sex is basically the same as your Gender variable for role, Age as grade.

 

There are many appearance options available.

AVUH777
Obsidian | Level 7
Thank you so much! This was very helpful.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 17 replies
  • 1706 views
  • 6 likes
  • 5 in conversation