BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Selvan05
Fluorite | Level 6

Hi,

 

Can anyone help me to understand how a simple tabular report/summary can be produced with SAS? I am looking for something like 

for each department in an university, the number of students in each year with a total.

DepartmentYear 1Year 2year 3Total
Economics605561176
Statistics504849147

 

Thanks in advance!

Selvan

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
Diamond | Level 26

Consider some fake data, created from SASHELP.SHOES so that the data has 2 different values for YEAR:

TABULATE & REPORT:

tab_report_forum.png

 

FREQ & MEANS:

freq_means.png

 

Hope this helps to point you in the right direction.

 

Cynthia

View solution in original post

3 REPLIES 3
PaigeMiller
Diamond | Level 26

I can't give you exact code until we can see the actual data, but any of these PROCs ought to work

 

REPORT
TABULATE
SUMMARY

FREQ

--
Paige Miller
Cynthia_sas
Diamond | Level 26

Consider some fake data, created from SASHELP.SHOES so that the data has 2 different values for YEAR:

TABULATE & REPORT:

tab_report_forum.png

 

FREQ & MEANS:

freq_means.png

 

Hope this helps to point you in the right direction.

 

Cynthia

Selvan05
Fluorite | Level 6
Hi Cynthia and Paige Miller,

Firstly apologies for the late response. I was away from work and could check our community page.

Thank you very much for your responses. this is very helpful for my implementation.

Br,
Selvan

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 965 views
  • 1 like
  • 3 in conversation