The SAS Output Delivery System and reporting techniques

Table to Header (and/or Footer) in RTF document

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 9
Accepted Solution

Table to Header (and/or Footer) in RTF document

Hi,

I would like to add table with document information and with title to header (and to footer) of generated RTF document.

 

It should look like this,
Screenshot from 2018-06-23 12-50-39.png

where the table is in header of RTF document.

How do I achieve this?
Thank you for any advice


Accepted Solutions
Solution
‎06-24-2018 10:01 AM
SAS Super FREQ
Posts: 9,423

Re: Table to Header (and/or Footer) in RTF document

Hi:

  I don't quite understand from your description what you mean by "add table with document information and with title to header". You also mentioned a footer, but didn't show a footer or footnote text.

 

  Do you mean something like this:

Table_Header_rtf.png

 

  It was all accomplished with SAS TITLE statements, ODS ESCAPECHAR (for the solid line and Page X of Y) and style overrides plus macro variables for the Protocol and date information -- I used the Journal style just because a lot of reports like this are in Journal style.

 

  Here's the code that produced this output:

table_header_code_rtf.png

 

Hope this helps,

Cynthia

View solution in original post


All Replies
Solution
‎06-24-2018 10:01 AM
SAS Super FREQ
Posts: 9,423

Re: Table to Header (and/or Footer) in RTF document

Hi:

  I don't quite understand from your description what you mean by "add table with document information and with title to header". You also mentioned a footer, but didn't show a footer or footnote text.

 

  Do you mean something like this:

Table_Header_rtf.png

 

  It was all accomplished with SAS TITLE statements, ODS ESCAPECHAR (for the solid line and Page X of Y) and style overrides plus macro variables for the Protocol and date information -- I used the Journal style just because a lot of reports like this are in Journal style.

 

  Here's the code that produced this output:

table_header_code_rtf.png

 

Hope this helps,

Cynthia

Occasional Contributor
Posts: 9

Re: Table to Header (and/or Footer) in RTF document

Posted in reply to Cynthia_sas

Thank you, thats exactly what I wanted to achieve ...

Regular Contributor
Posts: 170

Re: Table to Header (and/or Footer) in RTF document

to add a footnote to the table you could use:

  compute after ;
    line @1 " .... footnote ....";
  endcomp;

--------------
blog: papersandprograms.com
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 147 views
  • 1 like
  • 3 in conversation