<?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 Database Encoding in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Database-Encoding/m-p/171787#M3363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I use proc append it creates table in UTF-8? In config I have encoding as wlatin1. What is causing proc append to create tables using this encoding? Its a major problem because I then get ERROR: File &amp;lt;filename&amp;gt; cannot be updated because its encoding does not match the session encoding or the file when I append from work (which is in wlatin1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2014 19:56:16 GMT</pubDate>
    <dc:creator>Jchapman</dc:creator>
    <dc:date>2014-07-08T19:56:16Z</dc:date>
    <item>
      <title>Database Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Database-Encoding/m-p/171787#M3363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I use proc append it creates table in UTF-8? In config I have encoding as wlatin1. What is causing proc append to create tables using this encoding? Its a major problem because I then get ERROR: File &amp;lt;filename&amp;gt; cannot be updated because its encoding does not match the session encoding or the file when I append from work (which is in wlatin1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 19:56:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Database-Encoding/m-p/171787#M3363</guid>
      <dc:creator>Jchapman</dc:creator>
      <dc:date>2014-07-08T19:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Database Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Database-Encoding/m-p/171788#M3364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the BASE data set encoded as UTF-8 BEFORE the append? If you received the data set from someone else that is a likely culprit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 21:03:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Database-Encoding/m-p/171788#M3364</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-07-08T21:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Database Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Database-Encoding/m-p/171789#M3365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The base data set is WLatin. Did confirm this encoding. Dataset was pulled using explicit sql pass through from sql server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 21:27:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Database-Encoding/m-p/171789#M3365</guid>
      <dc:creator>Jchapman</dc:creator>
      <dc:date>2014-07-08T21:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Database Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Database-Encoding/m-p/171790#M3366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you run&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC DATASETS;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CONTENTS DATA=dsn;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on all of the datasets participating in your append, it will display the encoding of each one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you can use PROC OPTIONS OPTION=ENCODING to see what your default is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 21:33:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Database-Encoding/m-p/171790#M3366</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2014-07-08T21:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Database Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Database-Encoding/m-p/171791#M3367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS does appear to use the encoding of the base data set in an append proc, verify your types before the proc append via proc contents and after. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc contents data=sashelp.class;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data class (encoding=wlatin1);&lt;/P&gt;&lt;P&gt;set sashelp.class;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc contents data=class;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc append base=class data=sashelp.class;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc contents data=class;&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 21:40:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Database-Encoding/m-p/171791#M3367</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-07-08T21:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Database Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Database-Encoding/m-p/171792#M3368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how to figure out the encoding of a SAS/Access connection...maybe pull it into a WORK dataset, and check that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 21:44:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Database-Encoding/m-p/171792#M3368</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2014-07-08T21:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Database Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Database-Encoding/m-p/171793#M3369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oddly when I open SAS proc options encoding says encoding is WLatin1. But after I run program it says encoding is UTF-8. Very very odd seeing as I didn't think you could change option encoding except at SAS execution? Also, no encoding is specified in program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 21:59:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Database-Encoding/m-p/171793#M3369</guid>
      <dc:creator>Jchapman</dc:creator>
      <dc:date>2014-07-08T21:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Database Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Database-Encoding/m-p/171794#M3370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using rsubmit? Running on a server and local?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 22:19:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Database-Encoding/m-p/171794#M3370</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-07-08T22:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Database Encoding</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Database-Encoding/m-p/171795#M3371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something to know: &lt;BR /&gt;- Every SAS session has a run time encoding, this one is seen with proc options.&lt;BR /&gt;- Every SAS dataset has his own encoding setting this one is a SAS dataset setting (since 9 this has changed)&amp;nbsp; &lt;/P&gt;&lt;P&gt;- Every DBMS has his own encoding with SAS/Access the translation settings are to be configures.&lt;BR /&gt;- Eguide is standard having an UTF8 encoding.&amp;nbsp; This is also common with MS-office html (web) etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp; For fun most people are not aware of differences with those encodings still working like the 1980's in single-byte (latin) approach.&amp;nbsp; &lt;BR /&gt;- SAS sessions supporting utf8 must need to be started with a dedicated start-scritp. They are difficult to combine with latin1 types although this is possible.&lt;/P&gt;&lt;P&gt;- Utf8 is for a the part of latin-1 for the most chars single-byte exchangeable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc append is not creating a dataset but is combining two different ones.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Questions: &lt;BR /&gt;- are the BASE and update dataset for proc append both SAS datasets?&lt;/P&gt;&lt;P&gt;&amp;nbsp; - When they are both SAS datasets do they have the same encoding.&lt;BR /&gt;- are you appending to an exterenal DBMS?&lt;/P&gt;&lt;P&gt;&amp;nbsp; - What is the encoding of the DBMS and the settings in the dbms client connected to SAS/Access&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The dbms client is the one that will give the encoding to SAS/Access, the RDBMS may have an other encoding.e&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather sumbersome these topics. For the programming part there is a NLS guide: &lt;A href="https://support.sas.com/documentation/cdl/en/nlsref/67110/HTML/default/viewer.htm#titlepage.htm" title="https://support.sas.com/documentation/cdl/en/nlsref/67110/HTML/default/viewer.htm#titlepage.htm"&gt;SAS(R) 9.4 National Language Support (NLS): Reference Guide, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 08:46:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Database-Encoding/m-p/171795#M3371</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-07-09T08:46:00Z</dc:date>
    </item>
  </channel>
</rss>

