The SAS Output Delivery System and reporting techniques

Footnotes left and right justified in PDF destination are wrapping

Reply
Trusted Advisor
Posts: 1,034

Footnotes left and right justified in PDF destination are wrapping

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;

 

Grand Advisor
Posts: 9,748

Re: Footnotes left and right justified in PDF destination are wrapping

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.

Trusted Advisor
Posts: 1,034

Re: Footnotes left and right justified in PDF destination are wrapping

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:

 

PDFwrap.png

 

Unfortunately, running in 9.2 isn't an option for me. I guess I'll shoot it to tech support.

 

Thanks,

   Tom

Trusted Advisor
Posts: 1,034

Re: Footnotes left and right justified in PDF destination are wrapping

...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

Post a Question
Discussion Stats
  • 3 replies
  • 145 views
  • 0 likes
  • 2 in conversation