The SAS Output Delivery System and reporting techniques

Unexpected spaces in the result of ODS text - Help Please!

Reply
New Contributor
Posts: 3

Unexpected spaces in the result of ODS text - Help Please!

[ Edited ]

Hello all,

 

I have been using ODS text="xxxxx" statement to insert texts to PDF files along with graphs and tables. But I found that when I use the following syntax (Just for example), the two lines of texts show in the PDF output as:

 

    The activities of daily    scales
    The number of scales

 

  

Syntax :

 

ODS listing close;
ods pdf file='D:\inline6.pdf';
ODS text='^{style [fontsize=11pt] ^{style[fontsize=11pt fontweight=bold] The activities of daily}scales}';
ODS text='^{style [fontsize=11pt] ^{style[fontsize=11pt fontweight=bold] The number of}scales}';
ods escapechar='^';
title " ";
proc report data=sashelp.shoes nowd
style(column) = {vjust=b};
where product in ('Boot', 'Slipper', "Women's Dress");
column Product Sales N;
define Product / group
style(header)={background=white foreground=black};
define Sales / sum;
define N / '^S={background=white foreground=black}Number of Sales';
run;
ODS pdf close;
ODS listing;

 

Could anyone please tell me why there are some spaces between "The activities of daily" and "scales" in the first line, while there are not in the second line?  This makes me super confused. Thank you in advance!  

 

By the way, I am using SAS 9.4.

Super User
Posts: 11,343

Re: Unexpected spaces in the result of ODS text - Help Please!

The number of spaces is the same, at least when I copy the text from your output and paste into another application. The font rendering for some reason is displaying more space in one line than the other.

Ask a Question
Discussion stats
  • 1 reply
  • 336 views
  • 0 likes
  • 2 in conversation