BookmarkSubscribeRSS Feed
lerdem
Quartz | Level 8

I have two output, and need to append them one.

proc tabulate data=M format=8.2;

class TERM CAMPUS ;

table  (all='Total' ),

(CAMPUS ALL)*TERM *(n='#Enrl'*f=8.

pctn<CAMPUS ALL/*CAMPUS*TERM*/  ALL*CAMPUS   CAMPUS>

='% Tot Enrl') / rts=20;

run;

proc tabulate data=M format=8.2;

class TERM CAMPUS GENDER/MISSING;

table

  GENDER ALL, (CAMPUS ALL)*TERM*(n='#Enrl'*f=8.

pctn<GENDER ALL/*CAMPUS*TERM*/  ALL*GENDER   GENDER>

='% Tot Enrl') / rts=20;

run;

How can i append these two reports?

1 REPLY 1
ballardw
Super User

You can have more than one table statement in a call to proc tabulate. But I'm not sure what you would mean by "append". Do mean to have the same columns align vertically or rows align horizontally?

You need to show what you would expect the output to look like.

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1 reply
  • 784 views
  • 0 likes
  • 2 in conversation