<?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: Need to create currency symbol but British pound symbol does not work in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-to-create-currency-symbol-but-British-pound-symbol-does-not/m-p/836835#M330869</link>
    <description>&lt;P&gt;It would be worthwhile checking the encoding and locale settings of your SAS session:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option = locale;
run;

proc options option = encoding;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I would think having ENCODING = WLATIN1 and LOCALE = EN_GB should enable easier pound sign reporting.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2022 00:48:48 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2022-10-05T00:48:48Z</dc:date>
    <item>
      <title>Need to create currency symbol but British pound symbol does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-create-currency-symbol-but-British-pound-symbol-does-not/m-p/836685#M330819</link>
      <description>&lt;P&gt;I need to create a currency symbol, based on the country code in my customer table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the code that I am running. &lt;BR /&gt;&lt;BR /&gt;However the results for the country code "GB" results in a ? and not the £ symbol in my output table.&lt;BR /&gt;&lt;BR /&gt;I used (alt + 156) to insert the £ value in the code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The character encoding for my SAS session is Latin1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I get the £ sign to reflect in my SAS output table / results?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;create table CURRENCY_VALUES as&lt;/P&gt;
&lt;P&gt;select distinct a.country,&lt;/P&gt;
&lt;P&gt;CASE&lt;/P&gt;
&lt;P&gt;WHEN a.country ='BW' THEN 'P'&lt;/P&gt;
&lt;P&gt;WHEN a.country ='GH' THEN 'C'&lt;/P&gt;
&lt;P&gt;WHEN a.country ='LS' THEN 'L'&lt;/P&gt;
&lt;P&gt;WHEN a.country ='NA' THEN '$'&lt;/P&gt;
&lt;P&gt;WHEN a.country ='NG' THEN 'N'&lt;/P&gt;
&lt;P&gt;WHEN a.country ='SZ' THEN 'E'&lt;/P&gt;
&lt;P&gt;WHEN a.country ='ZA' THEN 'R'&lt;/P&gt;
&lt;P&gt;WHEN a.country ='ZM' THEN 'K'&lt;/P&gt;
&lt;P&gt;WHEN a.country ='GB' THEN "£"&lt;/P&gt;
&lt;P&gt;WHEN a.country ='KE' THEN 'K'&lt;/P&gt;
&lt;P&gt;WHEN a.country ='AU' THEN '$'&lt;/P&gt;
&lt;P&gt;else ''&lt;/P&gt;
&lt;P&gt;END as CURRENCY_SYMBOL, count(*) as Records&lt;/P&gt;
&lt;P&gt;from&lt;/P&gt;
&lt;P&gt;CUSTOMER_TABLE as a&lt;/P&gt;
&lt;P&gt;group by country,&lt;/P&gt;
&lt;P&gt;CASE&lt;/P&gt;
&lt;P&gt;WHEN a.country ='BW' THEN 'P'&lt;/P&gt;
&lt;P&gt;WHEN a.country ='GH' THEN 'C'&lt;/P&gt;
&lt;P&gt;WHEN a.country ='LS' THEN 'L'&lt;/P&gt;
&lt;P&gt;WHEN a.country ='NA' THEN '$'&lt;/P&gt;
&lt;P&gt;WHEN a.country ='NG' THEN 'N'&lt;/P&gt;
&lt;P&gt;WHEN a.country ='SZ' THEN 'E'&lt;/P&gt;
&lt;P&gt;WHEN a.country ='ZA' THEN 'R'&lt;/P&gt;
&lt;P&gt;WHEN a.country ='ZM' THEN 'K'&lt;/P&gt;
&lt;P&gt;WHEN a.country ='GB' THEN "£"&lt;/P&gt;
&lt;P&gt;WHEN a.country ='KE' THEN 'K'&lt;/P&gt;
&lt;P&gt;WHEN a.country ='AU' THEN '$'&lt;/P&gt;
&lt;P&gt;else '' end;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;RESULTS:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DarrylLawrence_0-1664886017564.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75851i6214668A472A5D5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DarrylLawrence_0-1664886017564.png" alt="DarrylLawrence_0-1664886017564.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;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 12:20:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-create-currency-symbol-but-British-pound-symbol-does-not/m-p/836685#M330819</guid>
      <dc:creator>DarrylLawrence</dc:creator>
      <dc:date>2022-10-04T12:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create currency symbol but British pound symbol does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-create-currency-symbol-but-British-pound-symbol-does-not/m-p/836697#M330822</link>
      <description>&lt;P&gt;According to&lt;A href="https://kb.iu.edu/d/aepu" target="_self"&gt; this page&lt;/A&gt;&amp;nbsp;, that a quick search found, the British pound symbol is 'A3'x in LATIN1 encoding.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1664888665723.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75853i627E6BF43332214E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1664888665723.png" alt="Tom_0-1664888665723.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WHEN a.country ='GB' THEN 'A3'x&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 13:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-create-currency-symbol-but-British-pound-symbol-does-not/m-p/836697#M330822</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-10-04T13:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create currency symbol but British pound symbol does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-create-currency-symbol-but-British-pound-symbol-does-not/m-p/836698#M330823</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/28909"&gt;@AllanBowe&lt;/a&gt;&amp;nbsp;can help you out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;He authored :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://rawsas.com/bitcoin-sas-format/" target="_blank"&gt;https://rawsas.com/bitcoin-sas-format/&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Create-a-SAS-format-for-Bitcoin-currency/m-p/447526#M134" target="_blank"&gt;https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Create-a-SAS-format-for-Bitcoin-currency/m-p/447526#M134&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;and he goes to the baker and butcher with British Pounds&lt;/LI&gt;
&lt;LI&gt;and he knows more about "encoding" than I do.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 13:05:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-create-currency-symbol-but-British-pound-symbol-does-not/m-p/836698#M330823</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-10-04T13:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create currency symbol but British pound symbol does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-create-currency-symbol-but-British-pound-symbol-does-not/m-p/836701#M330824</link>
      <description>&lt;P&gt;I believe it is an ENCODING system option problem.&lt;BR /&gt;Anyhow I typed the symbols in ms-word and copied it into sas.&lt;/P&gt;
&lt;P&gt;Here is the log of my test USING &lt;STRONG&gt;ENCODING=UTF-8&lt;/STRONG&gt;:&lt;/P&gt;
&lt;PRE&gt;69         data a;
70           txt = '$ £ €';
71           put txt=;
72         run;
txt=$ £ €&lt;/PRE&gt;
&lt;P&gt;checking the hexadecimal values:&lt;/P&gt;
&lt;P&gt;$ is '24'x&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;£ is 'C2A3'x&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;€ is 'E282'x&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 13:09:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-create-currency-symbol-but-British-pound-symbol-does-not/m-p/836701#M330824</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2022-10-04T13:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create currency symbol but British pound symbol does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-create-currency-symbol-but-British-pound-symbol-does-not/m-p/836830#M330868</link>
      <description>&lt;P&gt;Below works for me with a &lt;STRONG&gt;W&lt;/STRONG&gt;LATIN1 encoded session.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1664927880123.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75886iAD816D6641AE4BF4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1664927880123.png" alt="Patrick_0-1664927880123.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 23:58:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-create-currency-symbol-but-British-pound-symbol-does-not/m-p/836830#M330868</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-10-04T23:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create currency symbol but British pound symbol does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-create-currency-symbol-but-British-pound-symbol-does-not/m-p/836835#M330869</link>
      <description>&lt;P&gt;It would be worthwhile checking the encoding and locale settings of your SAS session:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option = locale;
run;

proc options option = encoding;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I would think having ENCODING = WLATIN1 and LOCALE = EN_GB should enable easier pound sign reporting.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 00:48:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-create-currency-symbol-but-British-pound-symbol-does-not/m-p/836835#M330869</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-10-05T00:48:48Z</dc:date>
    </item>
  </channel>
</rss>

