<?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 SAS Bulkload to ORACLE. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Bulkload-to-ORACLE/m-p/399144#M96640</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am writting the content of SAS dataset to Oracle using Bulkload. &lt;BR /&gt;After loaing the data to Oracle table I observed that the character columns are having the trailing blanks.&lt;/P&gt;
&lt;P&gt;Is there any bulkload option I can use to remove the trailing blanks?&lt;/P&gt;
&lt;P&gt;Refer the below code that I was using for Bulkload.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc append base=olaptable(BULKLOAD=YES&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BL_LOG="/sas/bl_lltemp.log"&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BL_CONTROL="/sas/bl_fcst_results_stg0_0.ctl"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BL_DATAFILE="/sas//bl_datafile.dat"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BL_BADFILE="/sas//bl_data.bad"&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BL_OPTIONS='ERRORS=50'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BL_DISCARDFILE="/sas//bl_datadsc.dsc"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BL_PRESERVE_BLANKS=YES&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bl_return_warnings_as_errors=yes&amp;nbsp;&lt;BR /&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; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data=sasorac.sasds1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Quick Help is highly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Kiran.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2017 12:53:00 GMT</pubDate>
    <dc:creator>kumargupt</dc:creator>
    <dc:date>2017-09-27T12:53:00Z</dc:date>
    <item>
      <title>SAS Bulkload to ORACLE.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Bulkload-to-ORACLE/m-p/399144#M96640</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am writting the content of SAS dataset to Oracle using Bulkload. &lt;BR /&gt;After loaing the data to Oracle table I observed that the character columns are having the trailing blanks.&lt;/P&gt;
&lt;P&gt;Is there any bulkload option I can use to remove the trailing blanks?&lt;/P&gt;
&lt;P&gt;Refer the below code that I was using for Bulkload.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc append base=olaptable(BULKLOAD=YES&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BL_LOG="/sas/bl_lltemp.log"&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BL_CONTROL="/sas/bl_fcst_results_stg0_0.ctl"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BL_DATAFILE="/sas//bl_datafile.dat"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BL_BADFILE="/sas//bl_data.bad"&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BL_OPTIONS='ERRORS=50'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BL_DISCARDFILE="/sas//bl_datadsc.dsc"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BL_PRESERVE_BLANKS=YES&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bl_return_warnings_as_errors=yes&amp;nbsp;&lt;BR /&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; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data=sasorac.sasds1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Quick Help is highly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Kiran.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 12:53:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Bulkload-to-ORACLE/m-p/399144#M96640</guid>
      <dc:creator>kumargupt</dc:creator>
      <dc:date>2017-09-27T12:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Bulkload to ORACLE.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Bulkload-to-ORACLE/m-p/399151#M96645</link>
      <description>&lt;P&gt;"&lt;STRONG&gt;CAUTION:&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV class="xis-cautionLeadin"&gt;&amp;nbsp;When this option is set to YES,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xis-userSuppliedValue"&gt;any trailing blank spaces are also inserted&lt;/SPAN&gt;. For this reason, use this option with caution. It is recommended that you set this option to YES only for CHAR columns. Do not set this option to YES for VARCHAR2 columns because trailing blank spaces are significant in VARCHAR2 columns."&lt;/DIV&gt;
&lt;DIV class="xis-cautionLeadin"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="xis-cautionLeadin"&gt;I guess that there is no real work around, unless to specify it for specific&amp;nbsp;columns rather than the whole table. Or as some post processing to BL file or loaded Oracle&amp;nbsp;table, but that would obviously take away some of the benefits of using bulk load.&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Sep 2017 13:17:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Bulkload-to-ORACLE/m-p/399151#M96645</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-09-27T13:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Bulkload to ORACLE.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Bulkload-to-ORACLE/m-p/408768#M99830</link>
      <description>&lt;P&gt;Thanks for the feedback.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 16:04:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Bulkload-to-ORACLE/m-p/408768#M99830</guid>
      <dc:creator>kumargupt</dc:creator>
      <dc:date>2017-10-30T16:04:42Z</dc:date>
    </item>
  </channel>
</rss>

