<?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: How to read scandinavian character (äöå) to SAS from Oracle database in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-scandinavian-character-%C3%A4%C3%B6%C3%A5-to-SAS-from-Oracle/m-p/775642#M246568</link>
    <description>&lt;P&gt;Glad you got it working. The SAS session encoding might not pass through to the database automatically depending on how your Oracle client is configured or the settings on the database itself. Good to have that encoding= hook for the libname statement.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Oct 2021 13:15:35 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2021-10-21T13:15:35Z</dc:date>
    <item>
      <title>How to read scandinavian character (äöå) to SAS from Oracle database</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-scandinavian-character-%C3%A4%C3%B6%C3%A5-to-SAS-from-Oracle/m-p/774873#M246309</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to do sql query to Oracle database from a SAS session. While we are in Finland there are Scandinavian characters (ä,ö,å) in the database. When I do sql query in SAS I get ä as a, ö as o and å as ?.&amp;nbsp; What should I do that scandinavian characters displayed right in SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is encoding in my SAS session.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;options&lt;/STRONG&gt; option=encoding; &lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;ENCODING=WLATIN1&amp;nbsp; Specifies the default character-set encoding for the SAS session.&lt;/P&gt;&lt;P&gt;In SAS Oracle sql query result&lt;/P&gt;&lt;P&gt;ä is a&lt;/P&gt;&lt;P&gt;ö is o&lt;/P&gt;&lt;P&gt;å is ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is encoding in Oracle.&lt;/P&gt;&lt;P&gt;select * from nls_database_parameters where parameter ='NLS_CHARACTERSET';&lt;/P&gt;&lt;P&gt;NLS_CHARACTERSET&amp;nbsp; WE8ISO8859P15&lt;/P&gt;&lt;P&gt;In Oracle query&lt;/P&gt;&lt;P&gt;ä is ä&lt;/P&gt;&lt;P&gt;ö is ö&lt;/P&gt;&lt;P&gt;å is å&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Markku Pietinen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 13:08:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-scandinavian-character-%C3%A4%C3%B6%C3%A5-to-SAS-from-Oracle/m-p/774873#M246309</guid>
      <dc:creator>pietinma</dc:creator>
      <dc:date>2021-10-18T13:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to read scandinavian character (äöå) to SAS from Oracle database</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-scandinavian-character-%C3%A4%C3%B6%C3%A5-to-SAS-from-Oracle/m-p/774898#M246313</link>
      <description>&lt;P&gt;Whenever possible, I recommend using ENCODING=UTF8 in SAS. It's a startup option so it must be added to the SAS start command or to the config file. SAS provides a config file for this in ../nls/u8 in the SAS application folder.&amp;nbsp; Example on Windows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-config "C:\Program Files\SASHome\SASFoundation\9.4\nls\u8\sasv9.cfg"&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 14:26:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-scandinavian-character-%C3%A4%C3%B6%C3%A5-to-SAS-from-Oracle/m-p/774898#M246313</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2021-10-18T14:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to read scandinavian character (äöå) to SAS from Oracle database</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-scandinavian-character-%C3%A4%C3%B6%C3%A5-to-SAS-from-Oracle/m-p/775598#M246552</link>
      <description>&lt;P&gt;Thank you for your reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This libname statement solved the problem:&lt;/P&gt;&lt;P&gt;libname o oracle user=&amp;amp;user pw=&amp;amp;pw path=k2000te dbprompt=no encoding ='wlatin1';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why does SAS not read it from the configuration file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc options &lt;/STRONG&gt;option=config;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CONFIG=( "C:\PROGRA~1\SASHome\SASFOU~1\9.4\sasv9.cfg" "C:\Program Files\SASHome\SASFoundation\9.4\nls\en\sasv9.cfg" )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Specifies the configuration file that is used when initializing or overriding the values of SAS system options.&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;-SET SASCFG "C:\Program Files\SASHome\SASFoundation\9.4\nls\en"&lt;/P&gt;&lt;P&gt;-LOCALE fi_FI&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-ENCODING wlatin1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;-TEXTURELOC !SASROOT\common\textures&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 10:17:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-scandinavian-character-%C3%A4%C3%B6%C3%A5-to-SAS-from-Oracle/m-p/775598#M246552</guid>
      <dc:creator>pietinma</dc:creator>
      <dc:date>2021-10-21T10:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to read scandinavian character (äöå) to SAS from Oracle database</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-scandinavian-character-%C3%A4%C3%B6%C3%A5-to-SAS-from-Oracle/m-p/775642#M246568</link>
      <description>&lt;P&gt;Glad you got it working. The SAS session encoding might not pass through to the database automatically depending on how your Oracle client is configured or the settings on the database itself. Good to have that encoding= hook for the libname statement.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 13:15:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-scandinavian-character-%C3%A4%C3%B6%C3%A5-to-SAS-from-Oracle/m-p/775642#M246568</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2021-10-21T13:15:35Z</dc:date>
    </item>
  </channel>
</rss>

