Desktop productivity for business analysts and programmers

How to append two same proc tabulate

Reply
Contributor
Posts: 47

How to append two same proc tabulate

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?

Grand Advisor
Posts: 10,223

Re: How to append two same proc tabulate

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.

Ask a Question
Discussion stats
  • 1 reply
  • 202 views
  • 0 likes
  • 2 in conversation