BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

I created an HTML file using PROC TABULATE. I divided my table into parts depending on one column, so that I have several tables on my HTML page. I wanna put just one single title to the top of page (now, the title is written above each single table), how can I do that? Thank you...
1 REPLY 1
Cynthia_sas
Diamond | Level 26
Hi:
SAS wants to repeat the title statement on every "logical" page. So it sounds like that's what you're getting with your multiple tables. If what you want is just some text at the top of all your tabulate output, then I suggest using the TEXT= option.

cynthia
[pre]
title;
footnote;

ods html file='text_title.html' style=sasweb;

ods html text='<center><H2>Text String Looks Like Title</H2></center>';

proc tabulate data=sashelp.shoes;
where region in ('Asia', 'Canada', 'Pacific');
class region product;
var sales;
table region,
product,
sales*(mean sum);
run;

ods html close;
[/pre]

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 720 views
  • 0 likes
  • 2 in conversation