Formatting proc tabulate

Hi I have the following code in sas . I would like to create multiple tables like this one but one main title and then each table with its own subtitle. Is there a way i can do this?

Also, i need to remove the date and run information that is presented adjacent to title by default.


data mydata;
input id txn;
datalines;
01 10 
02 11 
03 111 
;;
run;

proc tabulate data=mydata missing;
class id;
var txn ;
table id ALL, (SUM=''*txn='Sum of txn' MEAN=''*txn='Mean of txn' N=''*txn='Count of txn') / ROW=FLOAT;
TITLE1 'SECTION ONE';
TITLE2 'FIRST TRANSACTIONS'
run

Open in new window

LuckyLucksAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tobey1Commented:
Here is what I would do to address the Constant Title1 and Changing Title 2

data mydata;
input id txn;
datalines;
01 10
02 11
03 111
;;
run;

TITLE1 'SECTION ONE';

proc tabulate data=mydata missing;
class id;
var txn ;
table id ALL, (SUM=''*txn='Sum of txn' MEAN=''*txn='Mean of txn' N=''*txn='Count of txn') / ROW=FLOAT;
TITLE2 'FIRST TRANSACTIONS';
run;

proc tabulate data=mydata missing;
class id;
var txn ;
table id ALL, (SUM=''*txn='Sum of txn' MEAN=''*txn='Mean of txn' N=''*txn='Count of txn') / ROW=FLOAT;
TITLE2 'SECOND TRANSACTIONS';
run;

etc.
By leaving TITLE1 Static and only declared once, it will remain constant.  You can do this for multiple titles (top down).  Then you can make TITLE2 whatever you need to define your report.

As for removing the date put this at the start of your SAS code:  OPTION NODATE;

Let me know if that is what you where looking for.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tobey1Commented:
to get ride of the date and page number use the following:
option nodate nonumber;
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.