BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Matyas
Fluorite | Level 6

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

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
Diamond | Level 26

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

3 REPLIES 3
Cynthia_sas
Diamond | Level 26

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

Matyas
Fluorite | Level 6

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

pau13rown
Lapis Lazuli | Level 10

to add a footnote to the table you could use:

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

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
  • 3 replies
  • 2103 views
  • 1 like
  • 3 in conversation