<?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 Unable to load Chinese language data (UNICODE) from SAS table to Oracle table in proper format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-load-Chinese-language-data-UNICODE-from-SAS-table-to/m-p/377176#M90553</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have Chinese language data in source file (.xlsx) . I am able to import it in proper Chinese language in SAS table (through UTF8 sas server) .&lt;/P&gt;&lt;P&gt;&amp;nbsp;But when I am trying to insert SAS table data into target table ( oracle table ) than &amp;nbsp;all Chinese language data converted into ‘?’ marks .&lt;/P&gt;&lt;P&gt;When Target team trying to load some sample Chinese language data directly on oracle table using import option than it’ coming in proper Chinese language format .&lt;/P&gt;&lt;P&gt;In same table some column have data in number , date and English language data&amp;nbsp;and those data inserted in proper format .&lt;/P&gt;&lt;P&gt;I am using insert statement for load data into Oracle table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname SAS_DEV&lt;STRONG&gt; oracle&lt;/STRONG&gt; authdomain=’XXXXXXXXX’ path=”XXXXXXXXX’ schema='SAS_DEV';&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; sql;&lt;/P&gt;&lt;P&gt;Insert into SAS_DEV.FX_MARKET_UPDATE_EXTERNAL&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ENG_DESC,SIM_CHIN_HEADER_DESC ,SIM_CHIN_HEADER_DESC, AMT_NUM, CREATE_DT&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;select ENG_DESC,SIM_CHIN_HEADER_DESC ,SIM_CHIN_HEADER_DESC, AMT_NUM, CREATE_DT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from WORK.FX_MARKET_SIM_CHINESE;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is anyone help me in this issue?&lt;/P&gt;&lt;P&gt;Please see attached file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2017 05:04:16 GMT</pubDate>
    <dc:creator>anandsasbi</dc:creator>
    <dc:date>2017-07-19T05:04:16Z</dc:date>
    <item>
      <title>Unable to load Chinese language data (UNICODE) from SAS table to Oracle table in proper format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-load-Chinese-language-data-UNICODE-from-SAS-table-to/m-p/377176#M90553</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have Chinese language data in source file (.xlsx) . I am able to import it in proper Chinese language in SAS table (through UTF8 sas server) .&lt;/P&gt;&lt;P&gt;&amp;nbsp;But when I am trying to insert SAS table data into target table ( oracle table ) than &amp;nbsp;all Chinese language data converted into ‘?’ marks .&lt;/P&gt;&lt;P&gt;When Target team trying to load some sample Chinese language data directly on oracle table using import option than it’ coming in proper Chinese language format .&lt;/P&gt;&lt;P&gt;In same table some column have data in number , date and English language data&amp;nbsp;and those data inserted in proper format .&lt;/P&gt;&lt;P&gt;I am using insert statement for load data into Oracle table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname SAS_DEV&lt;STRONG&gt; oracle&lt;/STRONG&gt; authdomain=’XXXXXXXXX’ path=”XXXXXXXXX’ schema='SAS_DEV';&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; sql;&lt;/P&gt;&lt;P&gt;Insert into SAS_DEV.FX_MARKET_UPDATE_EXTERNAL&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ENG_DESC,SIM_CHIN_HEADER_DESC ,SIM_CHIN_HEADER_DESC, AMT_NUM, CREATE_DT&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;select ENG_DESC,SIM_CHIN_HEADER_DESC ,SIM_CHIN_HEADER_DESC, AMT_NUM, CREATE_DT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from WORK.FX_MARKET_SIM_CHINESE;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is anyone help me in this issue?&lt;/P&gt;&lt;P&gt;Please see attached file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 05:04:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-load-Chinese-language-data-UNICODE-from-SAS-table-to/m-p/377176#M90553</guid>
      <dc:creator>anandsasbi</dc:creator>
      <dc:date>2017-07-19T05:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load Chinese language data (UNICODE) from SAS table to Oracle table in proper format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-load-Chinese-language-data-UNICODE-from-SAS-table-to/m-p/377178#M90554</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may need to check the character-set encoding for&amp;nbsp;your SAS environment.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you run the following lines and paste the output, especially for ENCODING and LOCALE:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options group=languagecontrol;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR./Edward&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 05:28:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-load-Chinese-language-data-UNICODE-from-SAS-table-to/m-p/377178#M90554</guid>
      <dc:creator>EdwardJin</dc:creator>
      <dc:date>2017-07-19T05:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load Chinese language data (UNICODE) from SAS table to Oracle table in proper format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-load-Chinese-language-data-UNICODE-from-SAS-table-to/m-p/377323#M90591</link>
      <description>&lt;P&gt;Make sure SAS and Oracle have the same encoding.&lt;/P&gt;
&lt;P&gt;Change environment variable in sasenv_local .&lt;/P&gt;
&lt;P&gt;EXPORT xxxxx=xxxxxxx&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 13:48:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-load-Chinese-language-data-UNICODE-from-SAS-table-to/m-p/377323#M90591</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-07-19T13:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load Chinese language data (UNICODE) from SAS table to Oracle table in proper format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-load-Chinese-language-data-UNICODE-from-SAS-table-to/m-p/377631#M90696</link>
      <description>&lt;P&gt;I have used below line before insert SAS table data in Oracle but it’s not working result is same .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; options group=language control;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;when I am running code under UTF-8 SAS Session than SAS table showing data in Chinese language but when same SAS table I use to open in SAS Normal session than Chinese data not showing in proper order.&lt;/P&gt;&lt;P&gt;It’s means SAS internally storing data in “?” or “|_” symbol. Only showing in proper format in UTF-8 SAS Session. My SAS session support UTF-8 .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt; :- could you please explain me how to change environment variable in sasenv_local when I am running my SAS code. So data store in Multi byte under SAS table.&lt;/P&gt;&lt;P&gt;If you have any example code than please let me know.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 03:22:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-load-Chinese-language-data-UNICODE-from-SAS-table-to/m-p/377631#M90696</guid>
      <dc:creator>anandsasbi</dc:creator>
      <dc:date>2017-07-20T03:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load Chinese language data (UNICODE) from SAS table to Oracle table in proper format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-load-Chinese-language-data-UNICODE-from-SAS-table-to/m-p/377728#M90726</link>
      <description>&lt;P&gt;Sorry. Based on my experience before. If your SAS is under AIX / UNIX , there is a file named sasenv_local you can use.&lt;/P&gt;
&lt;P&gt;Change the encoding of SAS into the same as Oracel. I have forgotten how to edit it.&lt;/P&gt;
&lt;P&gt;Search 'sasenv_local ' at support.sas.com .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;File to modify:
/app/sas/sashome/SASFoundation/9.4/bin/sasenv_local
export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Jul 2017 12:45:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-load-Chinese-language-data-UNICODE-from-SAS-table-to/m-p/377728#M90726</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-07-20T12:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load Chinese language data (UNICODE) from SAS table to Oracle table in proper format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-load-Chinese-language-data-UNICODE-from-SAS-table-to/m-p/378019#M90810</link>
      <description>&lt;P&gt;I have already used (x 'export NLS_LANG=UTF-8';) in my code before LIB statement .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;x 'export NLS_LANG=UTF-8';&lt;BR /&gt;libname SAS_DEV oracle authdomain='*************'path='***********'schema='SAS_DEV';&lt;BR /&gt;data SAS_DEV.FX_MARKET_SIM_CHINESE&lt;BR /&gt;length CHINESE&amp;nbsp; Nvarchar(40) ;&lt;BR /&gt;set work.Test2 ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but same '?' showing in Oracle table. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 07:34:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-load-Chinese-language-data-UNICODE-from-SAS-table-to/m-p/378019#M90810</guid>
      <dc:creator>anandsasbi</dc:creator>
      <dc:date>2017-07-21T07:34:09Z</dc:date>
    </item>
  </channel>
</rss>

