<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unicode characters causing PROC REPORT row height changes in PDF output in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unicode-characters-causing-PROC-REPORT-row-height-changes-in-PDF/m-p/278293#M16142</link>
    <description>&lt;P&gt;Yes, I am using PROC REPORT, and I have set various cellpadding values. My code is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;**Create Report**;
proc report data=report_&amp;amp;infection split='\' 
   style(report)={cellspacing=0 cellpadding=2} 

   style(header)={ background=cxE0E0EB foreground=black font_face=calibri font_weight=bold font_size=8pt}
   style(column)={ background=white foreground=black font_face=calibri font_weight=medium font_size=8pt bordertopcolor=white};

   column unit infCount exp1 sig SIR_int row printed_row;


   define unit     / display center "Unit Type" style(column)={width=31.75%} ;
   define infCount / display "Observed\&amp;amp;infText" center style(column)={width=17.75%};
   define exp1	/ display "Predicted\&amp;amp;infText" center style(column)={width=17.75%};
   define SIR_int  / display center "How Does This Facility\Compare to the National\Experience?" style(column)={width=31.75%};
   define sig      / display noprint;
   define row      / order noprint;
   define printed_row / display noprint;
		
   ** Use the appropriate font/color for SIR interpretation text;
	
   compute SIR_int;
      if sig=1
         then call define(_col_,"style", "style={color=black}");
      else if sig=2
         then call define(_col_,"style", "style=[color=red]");
      else if sig=3 
         then call define(_col_,"style", "style=[color=green]");
	   else if sig=4
         then call define(_col_,"style", "style=[color=black]");
   endcomp;
	
   compute printed_row;
      if unit = "All reporting units" or unit = "Facility-wide inpatient" then do;
         do i = 1 to 5; ** column sequence from column statement above, so for cols 1 to 5;
            ** "merge" means to NOT overwrite other styles on this cell;
            call define(i,"style/merge","style={font_weight=bold}");
            if printed_row &amp;gt; 1 then do; ** write overline for this row if it is not the only row in the output;
               call define(i,"style/merge","style={bordertopcolor=black}");
            end;  
         end; 
      end;
   endcomp;
	
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I also&amp;nbsp;tried setting cellpadding=2px and 1px (in addition to just cellpadding=2, as above), and no change in output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure it's my code that's causing the issue, though. The same issue is in a PROC REPORT output you added as a response to the SAS Communities question entitled "Can a format use unicode characters and have different font sizes" back on 04-20-2015, where the PROC REPORT rows containing Unicode arrow-characters are significantly taller than the other rows.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jun 2016 19:05:56 GMT</pubDate>
    <dc:creator>bnawrocki</dc:creator>
    <dc:date>2016-06-17T19:05:56Z</dc:date>
    <item>
      <title>Unicode characters causing PROC REPORT row height changes in PDF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unicode-characters-causing-PROC-REPORT-row-height-changes-in-PDF/m-p/278225#M16134</link>
      <description>&lt;P&gt;I have added a Unicode "star" character to my PROC REPORT output, but it causes the row heights in the report to be too tall, with lots of wasted space. I'm writing to ODS PDF output, if that helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My&amp;nbsp;output examples both with and without the Unicode character are attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code to create the text value is this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;SIR_int="^{unicode 2605} Better";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this point, I'm open to alternatives to using the Unicode character.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12666i105CBC4F7BA65C8F/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="WithoutUnicode.PNG" title="WithoutUnicode.PNG" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12667i2D963D3360C6D55F/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="WithUnicode.PNG" title="WithUnicode.PNG" /&gt;</description>
      <pubDate>Fri, 17 Jun 2016 15:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unicode-characters-causing-PROC-REPORT-row-height-changes-in-PDF/m-p/278225#M16134</guid>
      <dc:creator>bnawrocki</dc:creator>
      <dc:date>2016-06-17T15:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode characters causing PROC REPORT row height changes in PDF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unicode-characters-causing-PROC-REPORT-row-height-changes-in-PDF/m-p/278273#M16140</link>
      <description>Hi:&lt;BR /&gt;  What is the rest of your code? Are you using PRINT, REPORT, DATA step to produce your report? I am guessing that the star is slightly raised. you could try changing the CELLPADDING attribute, but the WAY you change it will depend on the way you are creating the data for your destination.&lt;BR /&gt;&lt;BR /&gt;As an example, if you were using PROC REPORT, I would recommend experimenting with different values for CELLPADDING like this:&lt;BR /&gt;  proc report data=class(obs=5)&lt;BR /&gt;     style(report)={cellpadding=5px};&lt;BR /&gt; &lt;BR /&gt;cynthia</description>
      <pubDate>Fri, 17 Jun 2016 18:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unicode-characters-causing-PROC-REPORT-row-height-changes-in-PDF/m-p/278273#M16140</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-06-17T18:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode characters causing PROC REPORT row height changes in PDF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unicode-characters-causing-PROC-REPORT-row-height-changes-in-PDF/m-p/278293#M16142</link>
      <description>&lt;P&gt;Yes, I am using PROC REPORT, and I have set various cellpadding values. My code is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;**Create Report**;
proc report data=report_&amp;amp;infection split='\' 
   style(report)={cellspacing=0 cellpadding=2} 

   style(header)={ background=cxE0E0EB foreground=black font_face=calibri font_weight=bold font_size=8pt}
   style(column)={ background=white foreground=black font_face=calibri font_weight=medium font_size=8pt bordertopcolor=white};

   column unit infCount exp1 sig SIR_int row printed_row;


   define unit     / display center "Unit Type" style(column)={width=31.75%} ;
   define infCount / display "Observed\&amp;amp;infText" center style(column)={width=17.75%};
   define exp1	/ display "Predicted\&amp;amp;infText" center style(column)={width=17.75%};
   define SIR_int  / display center "How Does This Facility\Compare to the National\Experience?" style(column)={width=31.75%};
   define sig      / display noprint;
   define row      / order noprint;
   define printed_row / display noprint;
		
   ** Use the appropriate font/color for SIR interpretation text;
	
   compute SIR_int;
      if sig=1
         then call define(_col_,"style", "style={color=black}");
      else if sig=2
         then call define(_col_,"style", "style=[color=red]");
      else if sig=3 
         then call define(_col_,"style", "style=[color=green]");
	   else if sig=4
         then call define(_col_,"style", "style=[color=black]");
   endcomp;
	
   compute printed_row;
      if unit = "All reporting units" or unit = "Facility-wide inpatient" then do;
         do i = 1 to 5; ** column sequence from column statement above, so for cols 1 to 5;
            ** "merge" means to NOT overwrite other styles on this cell;
            call define(i,"style/merge","style={font_weight=bold}");
            if printed_row &amp;gt; 1 then do; ** write overline for this row if it is not the only row in the output;
               call define(i,"style/merge","style={bordertopcolor=black}");
            end;  
         end; 
      end;
   endcomp;
	
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I also&amp;nbsp;tried setting cellpadding=2px and 1px (in addition to just cellpadding=2, as above), and no change in output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure it's my code that's causing the issue, though. The same issue is in a PROC REPORT output you added as a response to the SAS Communities question entitled "Can a format use unicode characters and have different font sizes" back on 04-20-2015, where the PROC REPORT rows containing Unicode arrow-characters are significantly taller than the other rows.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 19:05:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unicode-characters-causing-PROC-REPORT-row-height-changes-in-PDF/m-p/278293#M16142</guid>
      <dc:creator>bnawrocki</dc:creator>
      <dc:date>2016-06-17T19:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode characters causing PROC REPORT row height changes in PDF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unicode-characters-causing-PROC-REPORT-row-height-changes-in-PDF/m-p/278333#M16143</link>
      <description>&lt;P&gt;HI:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I understand what you're saying and I see that it is related to that previous posting. When I ran a test just now, in SAS 9.4, this is what I got:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3667i17E26BC2711E0DEA/image-size/original?v=v2&amp;amp;px=-1" alt="star_nostar.png" title="star_nostar.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and here's the code I used:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title;
data class;
  length newname $40;
  set sashelp.class;
  SIR_int="^{unicode 2605} Better";
  newname = catt(SIR_int, '~', name);
run;

ods escapechar='^';

ods pdf file='c:\temp\with_and_without.pdf' startpage=no;
  proc report data=class(obs=5);
    column ('Without unicode character' name age sex height);
  run;

  proc report data=class(obs=5);
    column ('With unicode character' newname age sex height);
  run;

  proc report data=class(obs=5)
     style(report)={cellpadding=5px};
    column ('cellpadding=5px' newname age sex height);
  run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With cellpadding=5px, the 3rd output does not exactly the same as the top output, but it is close. For a closer look at what's going on, you may want to open a track with Tech Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2016 01:14:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unicode-characters-causing-PROC-REPORT-row-height-changes-in-PDF/m-p/278333#M16143</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-06-18T01:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode characters causing PROC REPORT row height changes in PDF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unicode-characters-causing-PROC-REPORT-row-height-changes-in-PDF/m-p/279013#M16158</link>
      <description>&lt;P&gt;Thanks, Cynthia_sas. Although when I use your example code I&amp;nbsp;see the same results in the SAS Results Viewer window of SAS 9.4, when I&amp;nbsp;write&amp;nbsp;the results&amp;nbsp;to a PDF file, I again see the extra spacing around the PROC REPORT table cells containing Unicode symbols.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As advised, I opened a track with SAS Tech Support yesterday. I received an update today, saying they believe this is a defect in SAS, and will update me if/when additional information is known. Until then, as a workaround, I'll find an appropriate ASCII character to use in place of the Unicode "star" character.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 13:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unicode-characters-causing-PROC-REPORT-row-height-changes-in-PDF/m-p/279013#M16158</guid>
      <dc:creator>bnawrocki</dc:creator>
      <dc:date>2016-06-21T13:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode characters causing PROC REPORT row height changes in PDF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unicode-characters-causing-PROC-REPORT-row-height-changes-in-PDF/m-p/555737#M22718</link>
      <description>&lt;P&gt;bnawrocki -- did you ever hear back from Tech Support on this track?&amp;nbsp; I seem to be having the same trouble with NE and SE arrows (indicating a trend up or down). &amp;nbsp; THANKS &amp;nbsp; -craig&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 19:37:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unicode-characters-causing-PROC-REPORT-row-height-changes-in-PDF/m-p/555737#M22718</guid>
      <dc:creator>craig_dickstein</dc:creator>
      <dc:date>2019-05-02T19:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode characters causing PROC REPORT row height changes in PDF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unicode-characters-causing-PROC-REPORT-row-height-changes-in-PDF/m-p/555925#M22723</link>
      <description>&lt;P&gt;craig_dickstein:&lt;/P&gt;&lt;P&gt;I never heard back from Tech Support. I think I dropped it because I found a different way to produce the symbol without the padding issue, and I also switched jobs, so I didn't follow up with them. I haven't needed to use a Unicode character since then. Could you open an issue on this with Tech Support, and let us know what you find out here?&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 13:43:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unicode-characters-causing-PROC-REPORT-row-height-changes-in-PDF/m-p/555925#M22723</guid>
      <dc:creator>bnawrocki</dc:creator>
      <dc:date>2019-05-03T13:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode characters causing PROC REPORT row height changes in PDF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unicode-characters-causing-PROC-REPORT-row-height-changes-in-PDF/m-p/556250#M22724</link>
      <description>&lt;P&gt;thanks -- I have submitted a problem track via the online facility. &amp;nbsp; -craig&lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2019 11:50:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unicode-characters-causing-PROC-REPORT-row-height-changes-in-PDF/m-p/556250#M22724</guid>
      <dc:creator>craig_dickstein</dc:creator>
      <dc:date>2019-05-05T11:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode characters causing PROC REPORT row height changes in PDF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unicode-characters-causing-PROC-REPORT-row-height-changes-in-PDF/m-p/556412#M22726</link>
      <description>&lt;P&gt;The result of my problem report is as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN class="cs78AB3212"&gt;The spacing is a known issue that is being addressed in a future release of SAS. &amp;nbsp;You can try setting a uniform column width as follows: &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class="cs432C9DF3"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="cs432C9DF3"&gt;report&lt;/SPAN&gt; &lt;SPAN class="cs511C2FCB"&gt;data&lt;/SPAN&gt;&lt;SPAN class="cs76E891F5"&gt;=your_data&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="cs76E891F5"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="cs511C2FCB"&gt;style&lt;/SPAN&gt;&lt;SPAN class="cs76E891F5"&gt;(column)=[cellheight=&lt;/SPAN&gt;&lt;SPAN class="csCA967A31"&gt;.25&lt;/SPAN&gt;&lt;SPAN class="cs76E891F5"&gt;in];"&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="cs76E891F5"&gt;For my application CELLHEIGHT does not help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="cs76E891F5"&gt;-craig&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 13:40:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unicode-characters-causing-PROC-REPORT-row-height-changes-in-PDF/m-p/556412#M22726</guid>
      <dc:creator>craig_dickstein</dc:creator>
      <dc:date>2019-05-06T13:40:39Z</dc:date>
    </item>
  </channel>
</rss>

