BookmarkSubscribeRSS Feed
Ronein
Meteorite | Level 14

Hello

I want to convert sas data set into summary report (Two -way summary report).

The summary report should NOT aggregate any   value and just display it

Required summary report

Ronein_0-1692096999260.png

 

What is the way to do it please?

data have;
input cat1 $ cat2 $ value;
cards;
a 1 10
a 2 20
a 3 30
b 1 40
b 2 50
b 3 60
c 1 70
c 2 80
c 3 90
;
Run;
1 REPLY 1
Kurt_Bremser
Super User

DEFINE cat1 as GROUP, cat2 as ACROSS, and value as ANALYSIS. Combine cat2 and value with a comma in the COLUMN statement. This will work with your data as the cat1/cat2 combinations are unique.

SAS INNOVATE 2024

innovate-wordmarks-white-horiz.png

SAS is headed back to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team.

Interested in speaking? Content from our attendees is one of the reasons that makes SAS Innovate such a special event!

Submit your idea!

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 70 views
  • 0 likes
  • 2 in conversation