BookmarkSubscribeRSS Feed
Subhan
Calcite | Level 5

Hi,

I have a long sas table (more than 200 obs) and I want to display the same in RTF file.

But I want only one time the table header name will display in the rtf file  and no header name will be there in next page(which is continuation of the same table).

Please help to get it resolve.

Thank You.

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Sorry, your request is not clear.  If you output from SAS to RTF then you get a marked up file with Titles defined once per section.  When you read that file in Word then the default operation is to apply titles throughout the document.

What you could do is to break up your output table and manually report each one separately e.g. proc report data=page1, proc report data=page2 etc. and you could specify a different title in between those procedures.  Each would then have its own titles.

Ksharp
Super User

Make variable names be the first obs value.

data class;

if _n_ eq 1 then do; name='name         ';sex='sex      ';output;end;

set sashelp.class sashelp.class;

output; keep name sex;

run;

ods listing close;

ods rtf file='x.rtf';

proc report data=class noheader  nowd;

run;

ods rtf close;

ods listing;

Xia Keshan

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!

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.

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
  • 2 replies
  • 864 views
  • 0 likes
  • 3 in conversation