<?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: how to print the special characters in sas log in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-print-the-special-characters-in-sas-log/m-p/407692#M99364</link>
    <description>&lt;P&gt;Hi, I recommend NOT writing to the LOG, or the OUTPUT window. Instead make a SAS dataset and use PROC PRINT so you can control the font and specify a UNICODE font for the output. I like the RTF or PDF example because with COLUMNS= it makes a nice 1 page job aid.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data special;
do k=1 to 255;
  x=byte(k);
  output;
end;
run;

options rightmargin=.5in leftmargin=.5in center nodate nonumber;
ods html file='c:\temp\showspecial.html';
ods rtf file='c:\temp\showspecial.rtf' columns=8;
ods pdf file='c:\temp\showspecial.pdf' columns=8;
proc print data=special noobs
  style(data)={fontface='Arial Unicode MS'};
  title 'Special Characters in Unicode Font';
run;
ods _all_ close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 26 Oct 2017 15:44:11 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2017-10-26T15:44:11Z</dc:date>
    <item>
      <title>how to print the special characters in sas log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-print-the-special-characters-in-sas-log/m-p/407679#M99359</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use the code in&amp;nbsp;&lt;A href="https://www.pharmasug.org/proceedings/2013/CC/PharmaSUG-2013-CC30.pdf" target="_blank"&gt;https://www.pharmasug.org/proceedings/2013/CC/PharmaSUG-2013-CC30.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;do k=1 to 255;&lt;BR /&gt;x=byte(k);&lt;BR /&gt;put k+10 x;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but in the log, some characters are not displayed correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spec char.png" style="width: 235px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16233i9E81C82B9D0AF078/image-size/large?v=v2&amp;amp;px=999" role="button" title="spec char.png" alt="spec char.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to fix this? i tried to change the sas font, but it seems not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only some fonts are available in my SAS9.4&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas font.png" style="width: 560px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16234i2B8CB47FAEA86AE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas font.png" alt="sas font.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 15:16:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-print-the-special-characters-in-sas-log/m-p/407679#M99359</guid>
      <dc:creator>ifendo</dc:creator>
      <dc:date>2017-10-26T15:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to print the special characters in sas log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-print-the-special-characters-in-sas-log/m-p/407692#M99364</link>
      <description>&lt;P&gt;Hi, I recommend NOT writing to the LOG, or the OUTPUT window. Instead make a SAS dataset and use PROC PRINT so you can control the font and specify a UNICODE font for the output. I like the RTF or PDF example because with COLUMNS= it makes a nice 1 page job aid.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data special;
do k=1 to 255;
  x=byte(k);
  output;
end;
run;

options rightmargin=.5in leftmargin=.5in center nodate nonumber;
ods html file='c:\temp\showspecial.html';
ods rtf file='c:\temp\showspecial.rtf' columns=8;
ods pdf file='c:\temp\showspecial.pdf' columns=8;
proc print data=special noobs
  style(data)={fontface='Arial Unicode MS'};
  title 'Special Characters in Unicode Font';
run;
ods _all_ close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Oct 2017 15:44:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-print-the-special-characters-in-sas-log/m-p/407692#M99364</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-10-26T15:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to print the special characters in sas log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-print-the-special-characters-in-sas-log/m-p/410077#M100217</link>
      <description>&lt;P&gt;Thank you very much,Cynthia. Yes, my default output is HTML and the unicode is not an issue to HTML.&lt;/P&gt;&lt;P&gt;But actually sometimes there is a need to investigate the special characters in the log for debuging, such as the nested macro call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so is there a way to display the special characters correctly in the log? i tried all the currently available fonts in my SAS9.4, but the special characters(like&amp;nbsp;"é") are replaced by a "?" in the log. so can i add some more fonts to my SAS9.4 to support the unicode in the log and how to do that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 04:50:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-print-the-special-characters-in-sas-log/m-p/410077#M100217</guid>
      <dc:creator>ifendo</dc:creator>
      <dc:date>2017-11-03T04:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to print the special characters in sas log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-print-the-special-characters-in-sas-log/m-p/410496#M100298</link>
      <description>Hi: My guess is that you have to figure out how to change the font in the log for display purposes. That's probably a question for Tech Support.&lt;BR /&gt; &lt;BR /&gt;cynthia</description>
      <pubDate>Fri, 03 Nov 2017 22:55:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-print-the-special-characters-in-sas-log/m-p/410496#M100298</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-11-03T22:55:05Z</dc:date>
    </item>
  </channel>
</rss>

