<?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 format including the unicode for ≤  not working in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577660#M163709</link>
    <description>&lt;P&gt;Hi everyone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to make a format that includes the&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;≤ unicode sign.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have searched the forums, but I cannot get the code to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value highlowfmt&lt;BR /&gt;1 = '(*ESC*){unicode "2264"x} median '&lt;BR /&gt;2 = '&amp;gt; median';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it runs without errors but doesn't output the unicode character&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2019 11:02:52 GMT</pubDate>
    <dc:creator>Mrksk</dc:creator>
    <dc:date>2019-07-30T11:02:52Z</dc:date>
    <item>
      <title>format including the unicode for ≤  not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577660#M163709</link>
      <description>&lt;P&gt;Hi everyone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to make a format that includes the&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;≤ unicode sign.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have searched the forums, but I cannot get the code to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value highlowfmt&lt;BR /&gt;1 = '(*ESC*){unicode "2264"x} median '&lt;BR /&gt;2 = '&amp;gt; median';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it runs without errors but doesn't output the unicode character&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 11:02:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577660#M163709</guid>
      <dc:creator>Mrksk</dc:creator>
      <dc:date>2019-07-30T11:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: format including the unicode for ≤  not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577694#M163718</link>
      <description>&lt;P&gt;You don't say why it doesn't work, but here is code that works for me. If it doesn't work for you, please tell us what you see or if the SAS log contains errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value highlowfmt
1 = '(*ESC*){unicode "2264"x} median '
2 = '&amp;gt; median';
run;

data A;
format x highlowfmt.;
input x @@;
datalines;
1 2 2 1 1 1
;

proc print; run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 112px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31409i94D173EA1B290A28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 12:21:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577694#M163718</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-07-30T12:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: format including the unicode for ≤  not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577697#M163721</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/278838"&gt;@Mrksk&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi everyone.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to make a format that includes the&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;≤ unicode sign.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I have searched the forums, but I cannot get the code to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc format;&lt;/P&gt;
&lt;P&gt;value highlowfmt&lt;BR /&gt;1 = '(*ESC*){unicode "2264"x} median '&lt;BR /&gt;2 = '&amp;gt; median';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it runs without errors but doesn't output the unicode character&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Did you include the FORMAT statement in your data step or PROC?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 12:30:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577697#M163721</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-30T12:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: format including the unicode for ≤  not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577705#M163726</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It outputs "(*ESC*){unicode "2264"x} median" as the formatted value-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;value highlowfmt&lt;BR /&gt;1 = '(*ESC*){unicode "2264"x} median '&lt;BR /&gt;2 = '&amp;gt; median';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data A;&lt;BR /&gt;format x highlowfmt.;&lt;BR /&gt;input x @@;&lt;BR /&gt;datalines;&lt;BR /&gt;1 2 2 1 1 1&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;proc print; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;log:&lt;/P&gt;&lt;P&gt;1 The SAS System 10:02 Tuesday, July 30, 2019&lt;/P&gt;&lt;P&gt;1 ;*';*";*/;quit;run;&lt;BR /&gt;2 OPTIONS PAGENO=MIN;&lt;BR /&gt;3 %LET _CLIENTTASKLABEL='Program (7)';&lt;BR /&gt;4 %LET _CLIENTPROCESSFLOWNAME='Process Flow';&lt;BR /&gt;5 %LET _CLIENTPROJECTPATH='H:\Dokumenter\NekrFasc\Nekrotiserende Fascitis Kohorte.egp';&lt;BR /&gt;6 %LET _CLIENTPROJECTPATHHOST='PC005760';&lt;BR /&gt;7 %LET _CLIENTPROJECTNAME='Nekrotiserende Fascitis Kohorte.egp';&lt;BR /&gt;8 %LET _SASPROGRAMFILE='';&lt;BR /&gt;9 %LET _SASPROGRAMFILEHOST='';&lt;BR /&gt;10&lt;BR /&gt;11 ODS _ALL_ CLOSE;&lt;BR /&gt;12 OPTIONS DEV=PNG;&lt;BR /&gt;13 FILENAME EGSR TEMP;&lt;BR /&gt;14 ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR&lt;BR /&gt;15 STYLE=Journal1a&lt;BR /&gt;16 STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/Journal1a.css")&lt;BR /&gt;17 NOGTITLE&lt;BR /&gt;18 NOGFOOTNOTE&lt;BR /&gt;19 GPATH=&amp;amp;sasworklocation&lt;BR /&gt;20 ENCODING=UTF8&lt;BR /&gt;21 options(rolap="on")&lt;BR /&gt;22 ;&lt;BR /&gt;NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR&lt;BR /&gt;23&lt;BR /&gt;24 proc format;&lt;BR /&gt;25 value highlowfmt&lt;BR /&gt;26 1 = '(*ESC*){unicode "2264"x} median '&lt;BR /&gt;27 2 = '&amp;gt; median';&lt;BR /&gt;NOTE: Format HIGHLOWFMT is already on the library WORK.FORMATS.&lt;BR /&gt;NOTE: Format HIGHLOWFMT has been output.&lt;BR /&gt;28 run;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE FORMAT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;29&lt;BR /&gt;30 data A;&lt;BR /&gt;31 format x highlowfmt.;&lt;BR /&gt;32 input x @@;&lt;BR /&gt;33 datalines;&lt;/P&gt;&lt;P&gt;NOTE: SAS went to a new line when INPUT statement reached past the end of a line.&lt;BR /&gt;NOTE: The data set WORK.A has 6 observations and 1 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;BR /&gt;&lt;BR /&gt;35 ;&lt;/P&gt;&lt;P&gt;36&lt;BR /&gt;37 proc print; run;&lt;/P&gt;&lt;P&gt;NOTE: There were 6 observations read from the data set WORK.A.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.03 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;BR /&gt;2 The SAS System 10:02 Tuesday, July 30, 2019&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;38&lt;BR /&gt;39 %LET _CLIENTTASKLABEL=;&lt;BR /&gt;40 %LET _CLIENTPROCESSFLOWNAME=;&lt;BR /&gt;41 %LET _CLIENTPROJECTPATH=;&lt;BR /&gt;42 %LET _CLIENTPROJECTPATHHOST=;&lt;BR /&gt;43 %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;44 %LET _SASPROGRAMFILE=;&lt;BR /&gt;45 %LET _SASPROGRAMFILEHOST=;&lt;BR /&gt;46&lt;BR /&gt;47 ;*';*";*/;quit;run;&lt;BR /&gt;48 ODS _ALL_ CLOSE;&lt;BR /&gt;49&lt;BR /&gt;50&lt;BR /&gt;51 QUIT; RUN;&lt;BR /&gt;52&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;x&lt;BR /&gt;(*ESC*){unicode "2264"x} median&lt;BR /&gt;&amp;gt; median&lt;BR /&gt;&amp;gt; median&lt;BR /&gt;(*ESC*){unicode "2264"x} median&lt;BR /&gt;(*ESC*){unicode "2264"x} median&lt;BR /&gt;(*ESC*){unicode "2264"x} median&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 12:46:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577705#M163726</guid>
      <dc:creator>Mrksk</dc:creator>
      <dc:date>2019-07-30T12:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: format including the unicode for ≤  not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577709#M163729</link>
      <description>&lt;P&gt;i think its an encoding issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 12:58:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577709#M163729</guid>
      <dc:creator>Mrksk</dc:creator>
      <dc:date>2019-07-30T12:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: format including the unicode for ≤  not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577710#M163730</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/278838"&gt;@Mrksk&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;i think its an encoding issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Maybe. But the code provided by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; creates the same output on both App-Servers i have access to, one uses Latin1 and the other one uses UTF-8.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 13:10:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577710#M163730</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-07-30T13:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: format including the unicode for ≤  not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577711#M163731</link>
      <description>&lt;P&gt;on the same computer, the code works in base SAS 9.4, but it doesn't work in sas enterprise guide.&lt;/P&gt;&lt;P&gt;this is really strange to me&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 13:19:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577711#M163731</guid>
      <dc:creator>Mrksk</dc:creator>
      <dc:date>2019-07-30T13:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: format including the unicode for ≤  not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577712#M163732</link>
      <description>&lt;P&gt;What version of SAS are you running?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The special string '(*ESC*)' is the default "escape character" on modern SAS systems. It is possible that you are running an old system or that the default has been changed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the ODS EXCAPECHAR statement to define your own "escape character." In the following, a caret is used to indicate to ODS that unicode is being used in the format:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS ESCAPECHAR '^';  /* use caret for escape character */

proc format;
value highlowfmt
1 = '^{unicode "2264"x} median '
2 = '&amp;gt; median';
run;

data A;
format x highlowfmt.;
input x @@;
datalines;
1 2 2 1 1 1
;

proc print; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Jul 2019 13:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577712#M163732</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-07-30T13:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: format including the unicode for ≤  not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577715#M163735</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;on the same computer, the code works in base SAS 9.4, but it doesn't work in sas enterprise guide.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well, THAT's useful information!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 13:23:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577715#M163735</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-07-30T13:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: format including the unicode for ≤  not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577717#M163736</link>
      <description>&lt;P&gt;That does NOT store the unicode character. It stores instructions that ODS will interpret to generate a unicode character.&amp;nbsp; Note you have overcomplicated the syntax by making the unicode number look like a hex literal.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value highlowfmt
  1 = '(*ESC*){unicode 2264} median'
  2 = '&amp;gt; median'
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So ODS outputs, like HTML should show the unicode character.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 141px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31410i958129C4B57DDCC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But text output will just show the text.&lt;/P&gt;
&lt;PRE&gt;Obs    value

 1     (*ESC*){unicode 2264} median
 2     &amp;gt; median&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 13:29:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577717#M163736</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-30T13:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: format including the unicode for ≤  not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577721#M163739</link>
      <description>Im on SAS enterprise guide 7.15 HF7 (7.100.5.6177) (64-bit)&lt;BR /&gt;&lt;BR /&gt;Changing the escapechar like the above doesn't work&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jul 2019 13:28:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577721#M163739</guid>
      <dc:creator>Mrksk</dc:creator>
      <dc:date>2019-07-30T13:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: format including the unicode for ≤  not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577722#M163740</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/278838"&gt;@Mrksk&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Im on SAS enterprise guide 7.15 HF7 (7.100.5.6177) (64-bit)&lt;BR /&gt;&lt;BR /&gt;Changing the escapechar like the above doesn't work&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not sure if the version of Enterprise Guide matters that much.&lt;/P&gt;
&lt;P&gt;What version of SAS are you using to run the code?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 13:36:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577722#M163740</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-30T13:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: format including the unicode for ≤  not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577729#M163741</link>
      <description>&lt;P&gt;the sas version is 9.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If it stores instructions that ODS will interpret to generate a unicode character, then it should display correctly on my ODS rtf output?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it doesn't&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here the full code:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods escapechar='^';&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;value highlowfmt&lt;BR /&gt;1 = '^{unicode "2264"x} median '&lt;BR /&gt;2 = '&amp;gt; median';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro SurvivalTemplateRestore;&lt;/P&gt;&lt;P&gt;%global TitleText0 TitleText1 TitleText2 yOptions xOptions tips&lt;BR /&gt;groups bandopts gridopts blockopts censored censorstr;&lt;/P&gt;&lt;P&gt;%let TitleText0 = METHOD " Survival Estimate";&lt;BR /&gt;%let TitleText1 = &amp;amp;titletext0 " for " STRATUMID;&lt;BR /&gt;%let TitleText2 = &amp;amp;titletext0 "s"; /* plural: Survival Estimates */&lt;/P&gt;&lt;P&gt;%let yOptions = label="Survival Probability"&lt;BR /&gt;shortlabel="Survival"&lt;BR /&gt;linearopts=(viewmin=0 viewmax=1&lt;BR /&gt;tickvaluelist=(0 .2 .4 .6 .8 1.0));&lt;/P&gt;&lt;P&gt;%let xOptions = shortlabel=XNAME&lt;BR /&gt;offsetmin=.05&lt;BR /&gt;linearopts=(viewmax=MAXTIME tickvaluelist=XTICKVALS&lt;BR /&gt;tickvaluefitpolicy=XTICKVALFITPOL);&lt;/P&gt;&lt;P&gt;%let tips = rolename=(_tip1=ATRISK _tip2=EVENT) tip=(y x Time _tip1 _tip2);&lt;/P&gt;&lt;P&gt;%let groups = group=STRATUM index=STRATUMNUM;&lt;/P&gt;&lt;P&gt;%let bandopts = &amp;amp;groups modelname="Survival";&lt;/P&gt;&lt;P&gt;%let gridopts = autoalign=( bottomright)&lt;BR /&gt;border=false BackgroundColor=GraphWalls:Color Opaque=false;&lt;/P&gt;&lt;P&gt;%let blockopts = repeatedvalues=true valuehalign=start valuefitpolicy=truncate&lt;BR /&gt;labelposition=left labelattrs=GRAPHVALUETEXT&lt;BR /&gt;valueattrs=GRAPHDATATEXT(size=7pt) includemissingclass=false;&lt;/P&gt;&lt;P&gt;%let censored = markerattrs=(symbol=plus);&lt;BR /&gt;%let censorstr = "+ Censored";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro SurvivalTemplate;&lt;BR /&gt;proc template;&lt;BR /&gt;define statgraph Stat.Lifetest.Graphics.ProductLimitSurvival;&lt;BR /&gt;dynamic NStrata xName plotAtRisk plotCL plotHW plotEP labelCL&lt;BR /&gt;%if %nrbquote(&amp;amp;censored) ne %then plotCensored;&lt;BR /&gt;labelHW labelEP maxTime xtickVals xtickValFitPol method StratumID&lt;BR /&gt;classAtRisk plotBand plotTest GroupName yMin Transparency SecondTitle&lt;BR /&gt;TestName pValue;&lt;BR /&gt;BeginGraph;&lt;/P&gt;&lt;P&gt;if (NSTRATA=1)&lt;BR /&gt;if (EXISTS(STRATUMID))&lt;BR /&gt;entrytitle &amp;amp;titletext1;&lt;BR /&gt;else&lt;BR /&gt;entrytitle &amp;amp;titletext0;&lt;BR /&gt;endif;&lt;BR /&gt;if (PLOTATRISK)&lt;BR /&gt;entrytitle "with Number of Subjects at Risk" / textattrs=&lt;BR /&gt;GRAPHVALUETEXT;&lt;BR /&gt;endif;&lt;/P&gt;&lt;P&gt;layout overlay / xaxisopts=(&amp;amp;xoptions) yaxisopts=(&amp;amp;yoptions);&lt;BR /&gt;%singlestratum&lt;BR /&gt;endlayout;&lt;/P&gt;&lt;P&gt;else&lt;BR /&gt;entrytitle &amp;amp;titletext2;&lt;BR /&gt;if (EXISTS(SECONDTITLE))&lt;BR /&gt;entrytitle SECONDTITLE / textattrs=GRAPHVALUETEXT;&lt;BR /&gt;endif;&lt;/P&gt;&lt;P&gt;layout overlay / xaxisopts=(&amp;amp;xoptions) yaxisopts=(&amp;amp;yoptions);&lt;BR /&gt;%multiplestrata&lt;BR /&gt;endlayout;&lt;/P&gt;&lt;P&gt;endif;&lt;/P&gt;&lt;P&gt;EndGraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;%mend;&lt;BR /&gt;%macro entry_p;&lt;BR /&gt;if (PVALUE &amp;lt; .0001)&lt;BR /&gt;entry TESTNAME " p " eval (PUT(PVALUE, PVALUE6.4));&lt;BR /&gt;else&lt;BR /&gt;entry TESTNAME " p=" eval (PUT(PVALUE, PVALUE6.4));&lt;BR /&gt;endif;&lt;BR /&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro SingleStratum;&lt;BR /&gt;if (PLOTHW=1 AND PLOTEP=0)&lt;BR /&gt;bandplot LimitUpper=HW_UCL LimitLower=HW_LCL x=TIME /&lt;BR /&gt;modelname="Survival" fillattrs=GRAPHCONFIDENCE&lt;BR /&gt;name="HW" legendlabel=LABELHW;&lt;BR /&gt;endif;&lt;BR /&gt;if (PLOTHW=0 AND PLOTEP=1)&lt;BR /&gt;bandplot LimitUpper=EP_UCL LimitLower=EP_LCL x=TIME /&lt;BR /&gt;modelname="Survival" fillattrs=GRAPHCONFIDENCE&lt;BR /&gt;name="EP" legendlabel=LABELEP;&lt;BR /&gt;endif;&lt;BR /&gt;if (PLOTHW=1 AND PLOTEP=1)&lt;BR /&gt;bandplot LimitUpper=HW_UCL LimitLower=HW_LCL x=TIME /&lt;BR /&gt;modelname="Survival" fillattrs=GRAPHDATA1 datatransparency=.55&lt;BR /&gt;name="HW" legendlabel=LABELHW;&lt;BR /&gt;bandplot LimitUpper=EP_UCL LimitLower=EP_LCL x=TIME /&lt;BR /&gt;modelname="Survival" fillattrs=GRAPHDATA2&lt;BR /&gt;datatransparency=.55 name="EP" legendlabel=LABELEP;&lt;BR /&gt;endif;&lt;BR /&gt;if (PLOTCL=1)&lt;BR /&gt;if (PLOTHW=1 OR PLOTEP=1)&lt;BR /&gt;bandplot LimitUpper=SDF_UCL LimitLower=SDF_LCL x=TIME /&lt;BR /&gt;modelname="Survival" display=(outline)&lt;BR /&gt;outlineattrs=GRAPHPREDICTIONLIMITS name="CL" legendlabel=LABELCL;&lt;BR /&gt;else&lt;BR /&gt;bandplot LimitUpper=SDF_UCL LimitLower=SDF_LCL x=TIME /&lt;BR /&gt;modelname="Survival" fillattrs=GRAPHCONFIDENCE name="CL"&lt;BR /&gt;legendlabel=LABELCL;&lt;BR /&gt;endif;&lt;BR /&gt;endif;&lt;/P&gt;&lt;P&gt;stepplot y=SURVIVAL x=TIME / name="Survival" &amp;amp;tips legendlabel="Survival";&lt;/P&gt;&lt;P&gt;if (PLOTCENSORED=1)&lt;BR /&gt;scatterplot y=CENSORED x=TIME / &amp;amp;censored&lt;BR /&gt;name="Censored" legendlabel="Censored";&lt;BR /&gt;endif;&lt;/P&gt;&lt;P&gt;if (PLOTCL=1 OR PLOTHW=1 OR PLOTEP=1)&lt;BR /&gt;discretelegend "Censored" "CL" "HW" "EP" / location=outside&lt;BR /&gt;halign=center;&lt;BR /&gt;else&lt;BR /&gt;if (PLOTCENSORED=1)&lt;BR /&gt;discretelegend "Censored" / location=inside&lt;BR /&gt;autoalign=(topright bottomleft);&lt;BR /&gt;endif;&lt;BR /&gt;endif;&lt;BR /&gt;if (PLOTATRISK=1)&lt;BR /&gt;innermargin / align=bottom;&lt;BR /&gt;blockplot x=TATRISK block=ATRISK / display=(values) &amp;amp;blockopts;&lt;BR /&gt;endinnermargin;&lt;BR /&gt;endif;&lt;BR /&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro MultipleStrata;&lt;BR /&gt;if (PLOTHW)&lt;BR /&gt;bandplot LimitUpper=HW_UCL LimitLower=HW_LCL x=TIME / &amp;amp;bandopts&lt;BR /&gt;datatransparency=Transparency;&lt;BR /&gt;endif;&lt;BR /&gt;if (PLOTEP)&lt;BR /&gt;bandplot LimitUpper=EP_UCL LimitLower=EP_LCL x=TIME / &amp;amp;bandopts&lt;BR /&gt;datatransparency=Transparency;&lt;BR /&gt;endif;&lt;BR /&gt;if (PLOTCL)&lt;BR /&gt;if (PLOTBAND)&lt;BR /&gt;bandplot LimitUpper=SDF_UCL LimitLower=SDF_LCL x=TIME / &amp;amp;bandopts&lt;BR /&gt;display=(outline);&lt;BR /&gt;else&lt;BR /&gt;bandplot LimitUpper=SDF_UCL LimitLower=SDF_LCL x=TIME / &amp;amp;bandopts&lt;BR /&gt;datatransparency=Transparency;&lt;BR /&gt;endif;&lt;BR /&gt;endif;&lt;/P&gt;&lt;P&gt;stepplot y=SURVIVAL x=TIME / &amp;amp;groups name="Survival" &amp;amp;tips;&lt;/P&gt;&lt;P&gt;if (PLOTCENSORED)&lt;BR /&gt;scatterplot y=CENSORED x=TIME / &amp;amp;groups &amp;amp;censored;&lt;BR /&gt;endif;&lt;/P&gt;&lt;P&gt;if (PLOTATRISK)&lt;BR /&gt;innermargin / align=bottom;&lt;BR /&gt;blockplot x=TATRISK block=ATRISK / class=CLASSATRISK&lt;BR /&gt;display=(label values) &amp;amp;blockopts;&lt;BR /&gt;endinnermargin;&lt;BR /&gt;endif;&lt;/P&gt;&lt;P&gt;DiscreteLegend "Survival" / across=1 location=inside&lt;BR /&gt;autoalign=(TopRight BottomLeft Top Bottom);&lt;/P&gt;&lt;P&gt;if (PLOTCENSORED)&lt;BR /&gt;if (PLOTTEST)&lt;BR /&gt;layout gridded / rows=2 &amp;amp;gridopts;&lt;BR /&gt;entry &amp;amp;censorstr;&lt;BR /&gt;%entry_p&lt;BR /&gt;endlayout;&lt;BR /&gt;else&lt;BR /&gt;layout gridded / rows=1 &amp;amp;gridopts;&lt;BR /&gt;entry &amp;amp;censorstr;&lt;BR /&gt;endlayout;&lt;BR /&gt;endif;&lt;BR /&gt;else&lt;BR /&gt;if (PLOTTEST)&lt;BR /&gt;layout gridded / rows=1 &amp;amp;gridopts;&lt;BR /&gt;%entry_p&lt;BR /&gt;endlayout;&lt;BR /&gt;endif;&lt;BR /&gt;endif;&lt;BR /&gt;%mend;&lt;/P&gt;&lt;P&gt;%SurvivalTemplate&lt;BR /&gt;%mend;&lt;BR /&gt;&lt;BR /&gt;ods noproctitle;&lt;BR /&gt;ods startpage=now;&lt;BR /&gt;ods rtf style=rtf file="H:\NSTI\lifetests.rtf" image_dpi=300 ;&lt;BR /&gt;ods graphics / reset noborder width=8.5cm ;&lt;BR /&gt;ods listing style=statistical ;&lt;BR /&gt;ods select SurvivalPlot (persist);&lt;/P&gt;&lt;P&gt;%SurvivalTemplateRestore;&lt;/P&gt;&lt;P&gt;%let TitleText0 = "MASP-1";&lt;BR /&gt;%let TitleText1 = &amp;amp;titletext0 " for " STRATUMID;&lt;BR /&gt;%let TitleText2 = &amp;amp;titletext0;&lt;/P&gt;&lt;P&gt;%SurvivalTemplate;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods select SurvivalPlot (persist);&lt;BR /&gt;Proc lifetest data= nf.kohorte2 plots=(survival(test nocensor)) notable;&lt;BR /&gt;time Time_to_death_90Days*Mortality_90_days(0) ;&lt;BR /&gt;strata group_masp1;&lt;BR /&gt;format group_masp1 highlowfmt.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%SurvivalTemplateRestore;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 13:48:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577729#M163741</guid>
      <dc:creator>Mrksk</dc:creator>
      <dc:date>2019-07-30T13:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: format including the unicode for ≤  not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577742#M163743</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the format is not corrected on my ods output either. im on SAS 9.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods escapechar='^';&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;value highlowfmt&lt;BR /&gt;1 = '^{unicode "2264"x} median '&lt;BR /&gt;2 = '&amp;gt; median';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods noproctitle;&lt;BR /&gt;ods startpage=now;&lt;BR /&gt;ods rtf style=rtf file="H:\NSTI\lifetests.rtf" image_dpi=300 ;&lt;BR /&gt;ods graphics / reset noborder width=8.5cm ;&lt;BR /&gt;ods listing style=statistical ;&lt;BR /&gt;ods select SurvivalPlot (persist);&lt;/P&gt;&lt;P&gt;%SurvivalTemplateRestore;&lt;/P&gt;&lt;P&gt;%let TitleText0 = "MASP-1";&lt;BR /&gt;%let TitleText1 = &amp;amp;titletext0 " for " STRATUMID;&lt;BR /&gt;%let TitleText2 = &amp;amp;titletext0;&lt;/P&gt;&lt;P&gt;%SurvivalTemplate;ods select SurvivalPlot (persist);&lt;BR /&gt;Proc lifetest data= nf.kohorte2 plots=(survival(test nocensor)) notable;&lt;BR /&gt;time Time_to_death_90Days*Mortality_90_days(0) ;&lt;BR /&gt;strata group_masp1;&lt;BR /&gt;format group_masp1 highlowfmt.;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 13:56:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577742#M163743</guid>
      <dc:creator>Mrksk</dc:creator>
      <dc:date>2019-07-30T13:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: format including the unicode for ≤  not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577747#M163746</link>
      <description>&lt;P&gt;So the question is does ODS GRAPHICS support the UNICODE keyword?&lt;/P&gt;
&lt;P&gt;From your example it looks like it does not.&amp;nbsp; Did you search the documentation for ODS GRAPHICS to see if that restriction is documented?&lt;/P&gt;
&lt;P&gt;Did you try including the actual UTF-8 code into the format instead?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value highlowfmt
  1 = 'E289A4'x ' median'
  2 = '&amp;gt; median'
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hopefully you can get it to work without going through the same extensive (confusing?) steps that were used is this article about PROC GLM graphics output.&amp;nbsp;&amp;nbsp;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2018/09/10/advanced-ods-graphics-unicode-tables-and-graphs/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2018/09/10/advanced-ods-graphics-unicode-tables-and-graphs/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 14:36:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577747#M163746</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-30T14:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: format including the unicode for ≤  not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577987#M163871</link>
      <description>&lt;P&gt;I did eventually got the code to work by using the dynamic variable.&lt;/P&gt;&lt;P&gt;My issue now is more severe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sas cant display any results from any of my previously working programs.&lt;/P&gt;&lt;P&gt;since this is a different issue i created a new topic.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 13:13:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-including-the-unicode-for-not-working/m-p/577987#M163871</guid>
      <dc:creator>Mrksk</dc:creator>
      <dc:date>2019-07-31T13:13:56Z</dc:date>
    </item>
  </channel>
</rss>

