Well, it's my month for ODS problems. I need an ODS footnote, with a left side part and a right side part, the left side part is quite long and extends past the center. Because of this, it's wrapping, even though the right side note is very short and leaves lots of room.
SAS Note 24492 covers exactly this situation, and presents a lovely solution. The problem is, the code that SAS posts as a solution exhibits the problem in my environment. I'd love a couple of you to try running the code, and report back if it corrects the problem in your environment, or reproduces it.
I'm specifically after the "CELLWIDTH" solution in the Full Code tab.
Thanks,
Tom
Link to the note:
http://support.sas.com/kb/24/492.html
The code on the tab:
ods escapechar='^';
options nodate nonumber orientation=portrait;
ods pdf file="c:\wrap.pdf" notoc;
title "Problem";
footnote j=l "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" j=r "YYYYYYYYYYYYYYYYY";
proc report data=sashelp.class nowd;
run;
title "Solution";
footnote j=l "^S={cellwidth=5.5in}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" j=r "YYYYYYYYYYYYYYYYY";
proc report data=sashelp.class nowd;
run;
ods _all_ close;
What page size are you using?
I do not see the wrapping using Base SAS 9.2 and the default PDF style in either proc report output using 3 different PDF viewers.
Hi @ballardw
Thanks for the cross check. I just reran it on SAS ODA, using exactly the code that I posted except for changing the ODS destination file name, and the bottom of the "Solution" page, which is supposed to fix it, looks like this:
Unfortunately, running in 9.2 isn't an option for me. I guess I'll shoot it to tech support.
Thanks,
Tom
...and crashed and burned again.
Tech Support reports that this is a known problem in 9.4 and "we are hopeful the developer can address it in the next maintenance release."
So, I'm 0-for-4 on PDF issues this month. I think I need a four leaf clover!
Tom
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.