The SAS Output Delivery System and reporting techniques

no header name needed in next page of rtf file of same table

Reply
New Contributor
Posts: 3

no header name needed in next page of rtf file of same table

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.

Esteemed Advisor
Esteemed Advisor
Posts: 7,222

Re: no header name needed in next page of rtf file of same table

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.

Grand Advisor
Posts: 9,578

Re: no header name needed in next page of rtf file of same table

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

Ask a Question
Discussion stats
  • 2 replies
  • 333 views
  • 0 likes
  • 3 in conversation