<?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 How to use unicode values with data _Null_ and file statement when not using ods in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-unicode-values-with-data-Null-and-file-statement-when/m-p/549767#M152593</link>
    <description>&lt;P&gt;I have a RTF macro which does not use the&amp;nbsp; ods statements but did set up a rtf table in the specified format. We have been using wingdings and monotype sorts to get special symbols such as check marks until now but now I need to use unicode values so that i can get the checkmark symbol with Segoe UI Symbol font but since am not using ods statement anywhere I am not able to let SAS know that it needs to treat the unicode value as unicode and not a normal symbol.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data mh._&amp;amp;mea.3 ;&lt;BR /&gt;length name $ 300;&lt;BR /&gt;set _&amp;amp;mea._kd&lt;BR /&gt;%if &amp;amp;mea. = ABC %then %do;&lt;BR /&gt;/* Creating an array for all plan variables and replacing its value with a rtf symbols for Tick symbol. F4 is for windings font and ü is unicode */&lt;BR /&gt;array travelplansss {*} &amp;amp;mea._:;&lt;BR /&gt;do k = 1 to dim(travelplansss);&lt;BR /&gt;travelplansss[k] = tranwrd(travelplansss[k] ,"\b\cf2\ Check Plan\b0" , "\f9\cf1 ^{unicode 2714}");&lt;BR /&gt;end;&lt;BR /&gt;%end;&lt;BR /&gt;%else %if &amp;amp;mea. = CPA%then %do;&lt;BR /&gt;array travelplansss {*} &amp;amp;mea._:;&lt;BR /&gt;do k = 1 to dim(travelplansss);&lt;BR /&gt;travelplansss[k] = tranwrd(plansss[k] ,"\b\cf11\ Delta Care\b0\cf0" , "^{unicode 2714");&lt;BR /&gt;end;&lt;BR /&gt;%end;&lt;BR /&gt;%else %do;&lt;BR /&gt;array travelplansss {*} &amp;amp;mea._:;&lt;BR /&gt;do k = 1 to dim(plansss);&lt;BR /&gt;travelplansss[k] = tranwrd(travelplansss[k] ,"\b\cf6\Check Status\b0" ,"^{unicode 2714");&lt;BR /&gt;end;&lt;BR /&gt;%end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_ ;&lt;BR /&gt;file "&amp;amp;sumrepOutput.\_&amp;amp;mea..rtf" ;&lt;BR /&gt;set &amp;amp;st.&amp;amp;yr.&amp;amp;pp._&amp;amp;mea.3 end= eof ;&lt;BR /&gt;if _N_ = 1 then do ;&lt;BR /&gt;%rtf (0) ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%rtf(&amp;amp;n_cols., &amp;amp;cw1. 8 8 12 7 10 8 7,&lt;BR /&gt;b=1, v=a, h=a, hline=t,/* hborder=brdrhair,*/ s=30 30, w=&amp;amp;width., clalign=b, shade=\clcbpat&amp;amp;TpT1., vborder=brdrhair) ;&lt;BR /&gt;%rtf (100) ;&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;run ;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2019 18:43:39 GMT</pubDate>
    <dc:creator>anshul_900</dc:creator>
    <dc:date>2019-04-09T18:43:39Z</dc:date>
    <item>
      <title>How to use unicode values with data _Null_ and file statement when not using ods</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-unicode-values-with-data-Null-and-file-statement-when/m-p/549767#M152593</link>
      <description>&lt;P&gt;I have a RTF macro which does not use the&amp;nbsp; ods statements but did set up a rtf table in the specified format. We have been using wingdings and monotype sorts to get special symbols such as check marks until now but now I need to use unicode values so that i can get the checkmark symbol with Segoe UI Symbol font but since am not using ods statement anywhere I am not able to let SAS know that it needs to treat the unicode value as unicode and not a normal symbol.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data mh._&amp;amp;mea.3 ;&lt;BR /&gt;length name $ 300;&lt;BR /&gt;set _&amp;amp;mea._kd&lt;BR /&gt;%if &amp;amp;mea. = ABC %then %do;&lt;BR /&gt;/* Creating an array for all plan variables and replacing its value with a rtf symbols for Tick symbol. F4 is for windings font and ü is unicode */&lt;BR /&gt;array travelplansss {*} &amp;amp;mea._:;&lt;BR /&gt;do k = 1 to dim(travelplansss);&lt;BR /&gt;travelplansss[k] = tranwrd(travelplansss[k] ,"\b\cf2\ Check Plan\b0" , "\f9\cf1 ^{unicode 2714}");&lt;BR /&gt;end;&lt;BR /&gt;%end;&lt;BR /&gt;%else %if &amp;amp;mea. = CPA%then %do;&lt;BR /&gt;array travelplansss {*} &amp;amp;mea._:;&lt;BR /&gt;do k = 1 to dim(travelplansss);&lt;BR /&gt;travelplansss[k] = tranwrd(plansss[k] ,"\b\cf11\ Delta Care\b0\cf0" , "^{unicode 2714");&lt;BR /&gt;end;&lt;BR /&gt;%end;&lt;BR /&gt;%else %do;&lt;BR /&gt;array travelplansss {*} &amp;amp;mea._:;&lt;BR /&gt;do k = 1 to dim(plansss);&lt;BR /&gt;travelplansss[k] = tranwrd(travelplansss[k] ,"\b\cf6\Check Status\b0" ,"^{unicode 2714");&lt;BR /&gt;end;&lt;BR /&gt;%end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_ ;&lt;BR /&gt;file "&amp;amp;sumrepOutput.\_&amp;amp;mea..rtf" ;&lt;BR /&gt;set &amp;amp;st.&amp;amp;yr.&amp;amp;pp._&amp;amp;mea.3 end= eof ;&lt;BR /&gt;if _N_ = 1 then do ;&lt;BR /&gt;%rtf (0) ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%rtf(&amp;amp;n_cols., &amp;amp;cw1. 8 8 12 7 10 8 7,&lt;BR /&gt;b=1, v=a, h=a, hline=t,/* hborder=brdrhair,*/ s=30 30, w=&amp;amp;width., clalign=b, shade=\clcbpat&amp;amp;TpT1., vborder=brdrhair) ;&lt;BR /&gt;%rtf (100) ;&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;run ;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 18:43:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-unicode-values-with-data-Null-and-file-statement-when/m-p/549767#M152593</guid>
      <dc:creator>anshul_900</dc:creator>
      <dc:date>2019-04-09T18:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use unicode values with data _Null_ and file statement when not using ods</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-unicode-values-with-data-Null-and-file-statement-when/m-p/549843#M152625</link>
      <description>&lt;P&gt;I am unsure I understand your aim, but here is how to insert a unicode character into a RTF file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf file="test.rtf";
proc print data=sashelp.class; run;
ods rtf close;

data t;
 infile "test.rtf";
 file   "test1.rtf";
 input; 
 _infile_=tranwrd(_infile_,'Barbara','\u1576?ar\u1576?ara');
 put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I inserted&amp;nbsp;&lt;SPAN&gt;Arabic letter&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;bāʼ&lt;/I&gt;&lt;SPAN&gt;&amp;nbsp;ب, instead of the letter b :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 303px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28590i13E554C70C58B880/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 05:32:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-unicode-values-with-data-Null-and-file-statement-when/m-p/549843#M152625</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-04-10T05:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to use unicode values with data _Null_ and file statement when not using ods</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-unicode-values-with-data-Null-and-file-statement-when/m-p/550017#M152683</link>
      <description>&lt;P&gt;Hello Chris, Thank you for the response. However when am trying to use the same code which you provided to test the waters, i am not getting the expected output.&amp;nbsp; The only difference I made is that I changed the unicode value to 2713 which represents checkmark but instead I am getting a gujarati letter Nga which has corresponding unicode of 0A99. Can you think of something as to why this has happened?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also why to use ? after the unicode. I did notice that the output rtf gets corrupted if I remove it but can you explain the specific purpose of it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code snippet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data t2;&lt;BR /&gt;infile "C:\test.rtf";&lt;BR /&gt;file "C:\\test11.rtf";&lt;BR /&gt;input;&lt;BR /&gt;_infile_=tranwrd(_infile_,'Barbara','\u2713?');&lt;BR /&gt;put _infile_;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 17:23:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-unicode-values-with-data-Null-and-file-statement-when/m-p/550017#M152683</guid>
      <dc:creator>anshul_900</dc:creator>
      <dc:date>2019-04-10T17:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to use unicode values with data _Null_ and file statement when not using ods</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-unicode-values-with-data-Null-and-file-statement-when/m-p/550067#M152705</link>
      <description>&lt;P&gt;2713 decimal =0A99 hex.&lt;/P&gt;
&lt;P&gt;Use&amp;nbsp;\u10003&amp;nbsp; for a check mark.&lt;/P&gt;
&lt;P&gt;The ? tells the application what to display if the character cannot be displayed. i.e. display a question mark. As far as I know.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 21:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-unicode-values-with-data-Null-and-file-statement-when/m-p/550067#M152705</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-04-10T21:28:10Z</dc:date>
    </item>
  </channel>
</rss>

