<?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 Using an interpunct in SAS SGPLOT output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-an-interpunct-in-SAS-SGPLOT-output/m-p/495056#M130593</link>
    <description>&lt;P&gt;Greetings.&amp;nbsp; I need to format my decimal data in a SAS SGPLOT output to use the interpunct (centered dot) for the decimal point as required by a British medical journal.&amp;nbsp; For example, I need "1.8" formatted to look like "1∙8 ".&amp;nbsp; I can't find any SAS format or other way to do this in the documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody know how to do this?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Sep 2018 21:29:59 GMT</pubDate>
    <dc:creator>GoBlue88</dc:creator>
    <dc:date>2018-09-12T21:29:59Z</dc:date>
    <item>
      <title>Using an interpunct in SAS SGPLOT output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-an-interpunct-in-SAS-SGPLOT-output/m-p/495056#M130593</link>
      <description>&lt;P&gt;Greetings.&amp;nbsp; I need to format my decimal data in a SAS SGPLOT output to use the interpunct (centered dot) for the decimal point as required by a British medical journal.&amp;nbsp; For example, I need "1.8" formatted to look like "1∙8 ".&amp;nbsp; I can't find any SAS format or other way to do this in the documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody know how to do this?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 21:29:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-an-interpunct-in-SAS-SGPLOT-output/m-p/495056#M130593</guid>
      <dc:creator>GoBlue88</dc:creator>
      <dc:date>2018-09-12T21:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using an interpunct in SAS SGPLOT output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-an-interpunct-in-SAS-SGPLOT-output/m-p/495074#M130597</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I thought the convention was to use a comma as the decimal separator, which can be easily done using the commax format. But the Unicode character for the interpunct or middle dot is 00B7, so if you make a character string out of the number and use the ODS ESCAPECHAR and Unicode function, then you can do it:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="interpunct.png" style="width: 429px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23232i2370D4FB132D9AAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="interpunct.png" alt="interpunct.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code I used is here. CHARNUM is the variable that contains the interpunct character, so that's the one you use in the report procedure (here PROC REPORT):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data testit;
  length charnum $40;
  infile datalines dlm=',' dsd;
  input linenum decnum;
  interpunct='^{unicode 00B7}';
  int = int(decnum);
  dec = decnum -int;
  charnum = catt(int,interpunct,scan(dec,2,'.'));
return;
datalines;
1,1.8
2,2.25
3,33.333
4,0.4444
;
run;
  
ods escapechar='^';
proc report data=testit;
  column linenum decnum int dec charnum ;
  define charnum / style(column)={just=r};
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 23:12:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-an-interpunct-in-SAS-SGPLOT-output/m-p/495074#M130597</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-09-12T23:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using an interpunct in SAS SGPLOT output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-an-interpunct-in-SAS-SGPLOT-output/m-p/495075#M130598</link>
      <description>&lt;P&gt;Since you are talking SGPLOT if your version of SAS is not pretty recent, earlier than 9.4m3 for instance, you really need to mention which one.&lt;/P&gt;
&lt;P&gt;Also, where do you need to display the value that way? An axis? Data label? some where else? And what type of plot?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be a good idea to include your SGPLOT code and some sample data.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 23:16:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-an-interpunct-in-SAS-SGPLOT-output/m-p/495075#M130598</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-12T23:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using an interpunct in SAS SGPLOT output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-an-interpunct-in-SAS-SGPLOT-output/m-p/495080#M130600</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp; Yeah, I figured out the unicode of 00b7 right as the e-mail arrived with your solution.&amp;nbsp; Wish it was the simple comma, but this particular journal wants the interpunct.&amp;nbsp; Surprised there isn't a SAS format for it.&amp;nbsp; Kind of a pain to have to separate the significant digits from the integer and then concatenate them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 23:26:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-an-interpunct-in-SAS-SGPLOT-output/m-p/495080#M130600</guid>
      <dc:creator>GoBlue88</dc:creator>
      <dc:date>2018-09-12T23:26:37Z</dc:date>
    </item>
  </channel>
</rss>

