<?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 What proc sql OPTIONS should I use to avoid getting UNICODE Replacement Characters? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-proc-sql-OPTIONS-should-I-use-to-avoid-getting-UNICODE/m-p/851455#M336542</link>
    <description>&lt;P&gt;Code below mistakenly converts a unicode:&amp;nbsp; Ø&amp;nbsp; &amp;nbsp;&amp;nbsp; and in the destination oracle sql database&amp;nbsp; it appears as a&amp;nbsp; funny &amp;lt;?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Details below:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;UnicodeCodePoint&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; character&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;UTF-8(hex.)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;name&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; U+00D8&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c3 98&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LATIN CAPITAL LETTER O WITH STROKE&lt;/P&gt;&lt;P&gt;and turns it into a&amp;nbsp;&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; U+FFFD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;?&amp;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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Replacement Character&amp;nbsp;&lt;/P&gt;&lt;P&gt;---------&lt;/P&gt;&lt;P&gt;Is there an option to prevent that.&lt;/P&gt;&lt;P&gt;Any leads appreciated!&lt;/P&gt;&lt;P&gt;Thanks for looking!&lt;/P&gt;&lt;P&gt;-Jim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;87 proc sql;&lt;BR /&gt;88 insert into oralib.pax_customer2( bulkload=yes bl_direct_path=yes bl_delete_files=no&lt;BR /&gt;89 bl_datafile="/var/xxxxx/rmm/sprcg2/app3536847/sas/ish_extracts/prog/bl_customer_datafile.dat"&lt;BR /&gt;89 ! BL_OPTIONS='SILENT=FEEDBACK',&lt;BR /&gt;90 cust_nbr, cust_nm, cust_cur_stat_cd, ctry_cd, inln_cd,cust_type_cd,grnd_cust_nbr&lt;BR /&gt;91 )&lt;BR /&gt;92 (&lt;BR /&gt;93 select&lt;BR /&gt;94 cust_nbr,&lt;BR /&gt;95 cust_nm,&lt;BR /&gt;96 cust_cur_stat_cd,&lt;BR /&gt;97 ctry_cd,&lt;BR /&gt;98 inln_cd,&lt;BR /&gt;99 cust_type_cd,&lt;BR /&gt;^L3 The SAS System 19:08 Wednesday, December 21, 2022&lt;/P&gt;&lt;P&gt;100 case when grnd_cust_nbr &amp;gt; 0 then grnd_cust_nbr else 0 end as grnd_cust_nbr&lt;BR /&gt;101 from&lt;BR /&gt;102 here.customer&lt;BR /&gt;103 where&lt;BR /&gt;104 cust_nbr &amp;gt; 0&lt;BR /&gt;105 );&lt;BR /&gt;WARNING: Character expression will be truncated when assigned to character column CUST_CUR_STAT_CD.&lt;BR /&gt;NOTE: 32931679 rows were inserted into ORALIB.PAX_CUSTOMER2.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;************** Begin: SQL*Loader Log File **************&lt;/P&gt;&lt;P&gt;SQL*Loader: Release 19.0.0.0.0 - Production on Wed Dec 21 19:09:28 2022&lt;BR /&gt;Version 19.4.0.0.0&lt;/P&gt;&lt;P&gt;Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.&lt;/P&gt;&lt;P&gt;Control File: /var/xxxxx/SAS_util00010000E70D_prh90125.rsa.sbe.xxxx.com/BL_PAX_CUSTOMER2_0.ctl&lt;BR /&gt;Data File: /var/xxxxx/rmm/sprcg2/appxxxxx/sas/ish_extracts/prog/bl_customer_datafile.dat&lt;BR /&gt;File processing option string: "FIX 89 "&lt;BR /&gt;Bad File: /var/xxxxx/saswork/SAS_util00010000E70D_prh90125.rsa.sbe.xxxxx.com/BL_PAX_CUSTOMER2_0.bad&lt;BR /&gt;Discard File: /var/xxxxx/saswork/SAS_util00010000E70D_prh90125.rsa.sbe.xxxxx.com/BL_PAX_CUSTOMER2_0.dsc&lt;BR /&gt;(Allow all discards)&lt;/P&gt;&lt;P&gt;Number to load: ALL&lt;BR /&gt;Number to skip: 0&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2022 01:45:25 GMT</pubDate>
    <dc:creator>cellurl1</dc:creator>
    <dc:date>2022-12-29T01:45:25Z</dc:date>
    <item>
      <title>What proc sql OPTIONS should I use to avoid getting UNICODE Replacement Characters?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-proc-sql-OPTIONS-should-I-use-to-avoid-getting-UNICODE/m-p/851455#M336542</link>
      <description>&lt;P&gt;Code below mistakenly converts a unicode:&amp;nbsp; Ø&amp;nbsp; &amp;nbsp;&amp;nbsp; and in the destination oracle sql database&amp;nbsp; it appears as a&amp;nbsp; funny &amp;lt;?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Details below:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;UnicodeCodePoint&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; character&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;UTF-8(hex.)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;name&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; U+00D8&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c3 98&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LATIN CAPITAL LETTER O WITH STROKE&lt;/P&gt;&lt;P&gt;and turns it into a&amp;nbsp;&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; U+FFFD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;?&amp;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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Replacement Character&amp;nbsp;&lt;/P&gt;&lt;P&gt;---------&lt;/P&gt;&lt;P&gt;Is there an option to prevent that.&lt;/P&gt;&lt;P&gt;Any leads appreciated!&lt;/P&gt;&lt;P&gt;Thanks for looking!&lt;/P&gt;&lt;P&gt;-Jim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;87 proc sql;&lt;BR /&gt;88 insert into oralib.pax_customer2( bulkload=yes bl_direct_path=yes bl_delete_files=no&lt;BR /&gt;89 bl_datafile="/var/xxxxx/rmm/sprcg2/app3536847/sas/ish_extracts/prog/bl_customer_datafile.dat"&lt;BR /&gt;89 ! BL_OPTIONS='SILENT=FEEDBACK',&lt;BR /&gt;90 cust_nbr, cust_nm, cust_cur_stat_cd, ctry_cd, inln_cd,cust_type_cd,grnd_cust_nbr&lt;BR /&gt;91 )&lt;BR /&gt;92 (&lt;BR /&gt;93 select&lt;BR /&gt;94 cust_nbr,&lt;BR /&gt;95 cust_nm,&lt;BR /&gt;96 cust_cur_stat_cd,&lt;BR /&gt;97 ctry_cd,&lt;BR /&gt;98 inln_cd,&lt;BR /&gt;99 cust_type_cd,&lt;BR /&gt;^L3 The SAS System 19:08 Wednesday, December 21, 2022&lt;/P&gt;&lt;P&gt;100 case when grnd_cust_nbr &amp;gt; 0 then grnd_cust_nbr else 0 end as grnd_cust_nbr&lt;BR /&gt;101 from&lt;BR /&gt;102 here.customer&lt;BR /&gt;103 where&lt;BR /&gt;104 cust_nbr &amp;gt; 0&lt;BR /&gt;105 );&lt;BR /&gt;WARNING: Character expression will be truncated when assigned to character column CUST_CUR_STAT_CD.&lt;BR /&gt;NOTE: 32931679 rows were inserted into ORALIB.PAX_CUSTOMER2.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;************** Begin: SQL*Loader Log File **************&lt;/P&gt;&lt;P&gt;SQL*Loader: Release 19.0.0.0.0 - Production on Wed Dec 21 19:09:28 2022&lt;BR /&gt;Version 19.4.0.0.0&lt;/P&gt;&lt;P&gt;Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.&lt;/P&gt;&lt;P&gt;Control File: /var/xxxxx/SAS_util00010000E70D_prh90125.rsa.sbe.xxxx.com/BL_PAX_CUSTOMER2_0.ctl&lt;BR /&gt;Data File: /var/xxxxx/rmm/sprcg2/appxxxxx/sas/ish_extracts/prog/bl_customer_datafile.dat&lt;BR /&gt;File processing option string: "FIX 89 "&lt;BR /&gt;Bad File: /var/xxxxx/saswork/SAS_util00010000E70D_prh90125.rsa.sbe.xxxxx.com/BL_PAX_CUSTOMER2_0.bad&lt;BR /&gt;Discard File: /var/xxxxx/saswork/SAS_util00010000E70D_prh90125.rsa.sbe.xxxxx.com/BL_PAX_CUSTOMER2_0.dsc&lt;BR /&gt;(Allow all discards)&lt;/P&gt;&lt;P&gt;Number to load: ALL&lt;BR /&gt;Number to skip: 0&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 01:45:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-proc-sql-OPTIONS-should-I-use-to-avoid-getting-UNICODE/m-p/851455#M336542</guid>
      <dc:creator>cellurl1</dc:creator>
      <dc:date>2022-12-29T01:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: What proc sql OPTIONS should I use to avoid getting UNICODE Replacement Characters?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-proc-sql-OPTIONS-should-I-use-to-avoid-getting-UNICODE/m-p/851458#M336543</link>
      <description>&lt;P&gt;It's likely the value of&amp;nbsp;NLS_LANG that needs change - which is something a SAS Admin would need to do.&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/18/688.html" target="_blank"&gt;https://support.sas.com/kb/18/688.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can determine what currently set in SAS and Oracle using the commands from the following SAS Note&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/51/411.html" target="_blank"&gt;https://support.sas.com/kb/51/411.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even though above two notes are for reading from Oracle the same will also apply for writing to Oracle.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 02:03:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-proc-sql-OPTIONS-should-I-use-to-avoid-getting-UNICODE/m-p/851458#M336543</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-12-29T02:03:11Z</dc:date>
    </item>
  </channel>
</rss>

