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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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 save with the early bird rate—just $795!

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
  • 3976 views
  • 6 likes
  • 5 in conversation