<?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: Introduction of Special characters in a new database - Will SAS cope? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Introduction-of-Special-characters-in-a-new-database-Will-SAS/m-p/372969#M276158</link>
    <description>&lt;P&gt;Thanks for the response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you say system is that the SAS system, Windows or SQL environment?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will be honest I'm clueless when it comes to Unicode, etc&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jul 2017 11:53:01 GMT</pubDate>
    <dc:creator>Brian_lewis67</dc:creator>
    <dc:date>2017-07-04T11:53:01Z</dc:date>
    <item>
      <title>Introduction of Special characters in a new database - Will SAS cope?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Introduction-of-Special-characters-in-a-new-database-Will-SAS/m-p/372947#M276156</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A new database is being introduced to the business which which will start to include special characters (Welsh language accented). I've been informed that this caused issues previously so were removed from the original database.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We will need to read the fields in with the special characters included and also output them into an SQL dataset and an Excel spreadsheet. I've tried to find out if at any point this will become an issue but can't find a definitive answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've read that SAS can't output special characters without using the BYTE function but that wouldn't be possible in this instance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If someone can give me the reassurance that SAS will handle it all fine that would be great.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 09:11:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Introduction-of-Special-characters-in-a-new-database-Will-SAS/m-p/372947#M276156</guid>
      <dc:creator>Brian_lewis67</dc:creator>
      <dc:date>2017-07-04T09:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Introduction of Special characters in a new database - Will SAS cope?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Introduction-of-Special-characters-in-a-new-database-Will-SAS/m-p/372955#M276157</link>
      <description>&lt;P&gt;So long as you setup your system for the correct character set it should work, UTF-8 apparently has Welsh characters in:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.hesa.ac.uk/support/user-guides/xml-files/unicode" target="_blank"&gt;https://www.hesa.ac.uk/support/user-guides/xml-files/unicode&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;As for specific &lt;SPAN&gt;reassurance&amp;nbsp;I would put into SAS helpdesk a request for information and examples from them directly about what they support.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 09:39:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Introduction-of-Special-characters-in-a-new-database-Will-SAS/m-p/372955#M276157</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-07-04T09:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Introduction of Special characters in a new database - Will SAS cope?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Introduction-of-Special-characters-in-a-new-database-Will-SAS/m-p/372969#M276158</link>
      <description>&lt;P&gt;Thanks for the response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you say system is that the SAS system, Windows or SQL environment?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will be honest I'm clueless when it comes to Unicode, etc&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 11:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Introduction-of-Special-characters-in-a-new-database-Will-SAS/m-p/372969#M276158</guid>
      <dc:creator>Brian_lewis67</dc:creator>
      <dc:date>2017-07-04T11:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Introduction of Special characters in a new database - Will SAS cope?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Introduction-of-Special-characters-in-a-new-database-Will-SAS/m-p/372970#M276159</link>
      <description>&lt;P&gt;The SAS System, should be more or less the same across Windows/Unix. &amp;nbsp;SQL system is outside the scope of this forum.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 11:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Introduction-of-Special-characters-in-a-new-database-Will-SAS/m-p/372970#M276159</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-07-04T11:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Introduction of Special characters in a new database - Will SAS cope?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Introduction-of-Special-characters-in-a-new-database-Will-SAS/m-p/372990#M276160</link>
      <description>&lt;P&gt;Change your SAS encoding as UTF8.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;D:\SASHome\SASFoundation\9.4\sas.exe -CONFIG "D:\SASHome\SASFoundation\9.4\nls\u8\sasv9.cfg"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and using UNICODE() function. you can get any special character.&lt;/P&gt;
&lt;P&gt;Here is an example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
x=5;y=15;star=unicode('\u2605');output;star=' ';
x=10;y=11;star1=unicode('\u2605');output;star1=' ';
x=10;y=18;star2=unicode('\u2605');output;star2=' ';
x=12;y=13;star3=unicode('\u2605');output;star3=' ';
x=12;y=16;star4=unicode('\u2605');output;
run;


proc sgplot data=have aspect=0.6 noautolegend noborder;
styleattrs wallcolor=red;
text x=x y=y text=star/ textattrs=(color=yellow size=80pt) ;
text x=x y=y text=star1/ textattrs=(color=yellow size=40pt) rotate=60;
text x=x y=y text=star2/ textattrs=(color=yellow size=40pt ) rotate=60;
text x=x y=y text=star3/ textattrs=(color=yellow size=40pt ) ;
text x=x y=y text=star4/ textattrs=(color=yellow size=40pt) rotate=20;

xaxis display=none offsetmin=0 offsetmax=0 values=(0 30);
yaxis display=none offsetmin=0 offsetmax=0 values=(0 20);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10116i8EE2B5C0653815CA/image-size/original?v=1.0&amp;amp;px=-1" alt="x.png" title="x.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 13:22:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Introduction-of-Special-characters-in-a-new-database-Will-SAS/m-p/372990#M276160</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-07-04T13:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Introduction of Special characters in a new database - Will SAS cope?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Introduction-of-Special-characters-in-a-new-database-Will-SAS/m-p/373100#M276161</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18135"&gt;@Brian_lewis67&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Using a multibyte character set like UTF8 will support almost all languages. Using multibyte poses also some challenges though:&lt;/P&gt;
&lt;P&gt;1. You must have the SAS binaries installed for multibyte. If that's not already the case then you've got an installation task ahead.&lt;/P&gt;
&lt;P&gt;2. SAS files will require more storage space (up to 4 bytes per character). You need to define the lengths of your characters accordingly as in SAS the length definition of a character variable defines the number of bytes and not the number of character you can store.&lt;/P&gt;
&lt;P&gt;3. Some SAS string functions only work properly with single byte character sets and switching to multibyte means you'll have to revisit and eventually amend existing SAS code.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/nlsref/69741/HTML/default/viewer.htm#p1pca7vwjjwucin178l8qddjn0gi.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/nlsref/69741/HTML/default/viewer.htm#p1pca7vwjjwucin178l8qddjn0gi.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appears there is a singlebyte character set (codepage) which could work as well: &lt;STRONG&gt;ISO-8859-14&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.comisiynyddygymraeg.cymru/English/Part%203/10%20Locales%20alphabets%20and%20character%20sets/10.3%20Character%20sets/Pages/10-3-Character-sets.aspx" target="_blank"&gt;http://www.comisiynyddygymraeg.cymru/English/Part%203/10%20Locales%20alphabets%20and%20character%20sets/10.3%20Character%20sets/Pages/10-3-Character-sets.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the end of the day:&lt;/P&gt;
&lt;P&gt;You want to figure out what codepages gets used in the databases you're interfacing with&amp;nbsp;and then use something which matches.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 21:51:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Introduction-of-Special-characters-in-a-new-database-Will-SAS/m-p/373100#M276161</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-07-04T21:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Introduction of Special characters in a new database - Will SAS cope?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Introduction-of-Special-characters-in-a-new-database-Will-SAS/m-p/373662#M276162</link>
      <description>&lt;P&gt;Thanks to everyone for their response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added the Encode element to the config file and SAS refused to initialise correctly due to it being set as the wrong environment. I looked for a few answers and apparently there are other settings that have to be set within the config file so have left it for now as the config file is on a drive (C) that I'm not supposed to be able to access.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 14:04:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Introduction-of-Special-characters-in-a-new-database-Will-SAS/m-p/373662#M276162</guid>
      <dc:creator>Brian_lewis67</dc:creator>
      <dc:date>2017-07-06T14:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Introduction of Special characters in a new database - Will SAS cope?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Introduction-of-Special-characters-in-a-new-database-Will-SAS/m-p/373683#M276163</link>
      <description>&lt;P&gt;When my IT support installs SAS on users PCs they pre-install multiple configuration files and associated Windows ICONS. &amp;nbsp;So when I look in the START menu on Windows under SAS there are multiple icons. &amp;nbsp;In particular there are two that I use most often:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SAS 9.4 (English)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SAS 9.4 (Unicode Support)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use the second one then you should be able to handle Welsch characters (or any other special characters).&lt;/P&gt;
&lt;P&gt;If you do not have a configuration file with Unicode Support then ask your local support team to install one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also if you have access to SAS/Studio (which comes free with PC SAS) then that will normally also be available with Unicode support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 14:38:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Introduction-of-Special-characters-in-a-new-database-Will-SAS/m-p/373683#M276163</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-07-06T14:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Introduction of Special characters in a new database - Will SAS cope?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Introduction-of-Special-characters-in-a-new-database-Will-SAS/m-p/373685#M276164</link>
      <description>Thanks Tom. Funnily enough I do have an option that states SAS 9.4 (Unicode support) but get the error:&lt;BR /&gt;&lt;BR /&gt;ERROR: Invalid physical name for library SASUSER.&lt;BR /&gt;NOTE: Unable to initialize the options subsystem.&lt;BR /&gt;ERROR: (SASXKINI): PHASE 3 KERNEL INITIALIZATION FAILED.&lt;BR /&gt;ERROR: Unable to initialize the SAS kernel.&lt;BR /&gt;&lt;BR /&gt;This is where I am out of my depth so will have to rely on  a theoretical, more knowledgeable IT department</description>
      <pubDate>Thu, 06 Jul 2017 14:45:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Introduction-of-Special-characters-in-a-new-database-Will-SAS/m-p/373685#M276164</guid>
      <dc:creator>Brian_lewis67</dc:creator>
      <dc:date>2017-07-06T14:45:35Z</dc:date>
    </item>
  </channel>
</rss>

