BookmarkSubscribeRSS Feed
Maisha_Huq
Quartz | Level 8

Hello!

I have multiple frequency tables which I've ouputted to a PDF, where each table is for one of n sites from the a given data set.  I'd like to join these n tables together into one, however.  Would you have suggestions for how?

Many thanks in advance!

3 REPLIES 3
mohamed_zaki
Barite | Level 11

Use

ODS OUTPUT ONEWAYFREQS;

Maisha_Huq
Quartz | Level 8

To clarify, I have tables in this format:

Title: Site1

                              Freq     Count

     RA=Treatment

     RA= Control

but I'd like it as follows

Site1                           Freq     Count

     RA=Treatment

     RA= Control

Site2               

     RA=Treatment

     RA= Control

Site3                          

     RA=Treatment

     RA= Control

...

Would onewayfreqs work for this?


Thank you!

Reeza
Super User

Look at proc tabulate instead since I assume you're using ODS.

If you want a bit more manual control look at the code here:

SAS - One Way Summary Table

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 3 replies
  • 596 views
  • 3 likes
  • 3 in conversation