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-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 lock in 2025 pricing—just $495!

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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