I am trying to output a footnote onto one line with part left aligned and part right aligned. The issue I am having is when the left aligned part is longer than half of the page, it wraps just the left part. Is there anyway to make the left aligned part go past the halfway point on the page?
Code is here:
I'm not sure what forces that wrap at that positioning and if there is a way to change that. Thanks in advance for any help.
Does is wrap without the raw rtf codes?
Note, there is no way we can test anything like this without an example of all of the ODS destination statement in effect as well as the values of the macro variables.
Yes, it still wraps this way when I remove the rtf codes. It seems like there are 2 "cells" being created, one for the left and one for the right. I'm a bit unfamiliar with with how titles and footnotes work with proc report and ODS, so if there is anything else I can post that would help, please let me know. ODS options and our style sheet code are below.
options
nodate
nonumber
orientation = landscape
papersize = 'LETTER'
nobyline
;
ods graphics on /
reset = all
height = 4.92in
width =10in
border = no
;
ods listing close;
ods rtf
file = ".\_outputs\figures\&outfile..rtf"
nogtitle
nogfootnote
style = epscistyle
;
ods
escapechar = '^'
;
Style sheet
I do not understand what your question is. Are you using a FOOTNOTE statement? Are you using the J=L and J=R options?
Example:
title1 'This is the title';
footnote1 j=l 'pathstring' j=r 'Page X of Y' ;
proc print data=sashelp.class(obs=3);
run;
title; footnote;
Result
What is it that you want to happen differently?
Tom, if in your example, pathstring is a string longer than half of the width of the page, it will break at the midway point instead of extending even if there is room for it to extend. See the example in my original post.
A brief test makes me think that the issue that Just=R or Just=C creates a "guard space" for the right or center portion of the footnote output so the left part if long enough is not allowed to enter that space.
Which may mean that you don't want to have a J=R at all an perhaps insert a number of non-breaking space characters after the "left" text to space the the right text over.
Which will be load of fun as you are apparently using two different font sizes in the RTF codes.
Another option would be two footnotes. Have the Left justified by itself in Footnote1 and
the right justified by itself in Footnote2.
Thanks for the response. It was originally written the way that you suggest using /tabs between the two. I was hoping to get away from this as it creates problems when directory names are too long. Your thoughts on the reserved space are my thinking of what is going on too. Thanks again for looking into this.
@aharris2693 wrote:
Thanks for the response. It was originally written the way that you suggest using /tabs between the two. I was hoping to get away from this as it creates problems when directory names are too long. Your thoughts on the reserved space are my thinking of what is going on too. Thanks again for looking into this.
Did you see the bit about adding a separate footnote for the PAGE information so you don't have a J=R on the same footnote as the long text? And if you are using Options NOCENTER; The other footnote wouldn't need a J=L either.
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.
Ready to level-up your skills? Choose your own adventure.