<?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 Data Load To Netezza Fails in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-Load-To-Netezza-Fails/m-p/188633#M265886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have this issue where in the data load to a Netezza table is failing. This is a new implementation that we are doing.&lt;/P&gt;&lt;P&gt;My Environment:&lt;/P&gt;&lt;P&gt;SAS 9.3&lt;/P&gt;&lt;P&gt;AIX&lt;/P&gt;&lt;P&gt;Netezza.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with 149 columns with mostly numeric values (132 to be precise). I have a script that uses NZLOAD lo load the netezza table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Command:&lt;/P&gt;&lt;P&gt;nzload -host $enzeesrv -db $enzeedb -u $enzeeusr -pw $enzeepwd -df $path/$pipename -t $tablename -delim '|' -lf $path/$pipename.log -bf $path/$pipename.bad -MaxErrors 1 -crInString&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I call this script from a SAS job. The Longest record length = 1500 and I am using LRECL=2500 (just to accomodate).&lt;/P&gt;&lt;P&gt;The load is failing citing the following reason in the log file. I am using PIPE '|' as delimited to load the UNIX pipe.&lt;/P&gt;&lt;P&gt;It is failing on the very 1st for the 103rd column whose value is a 0. As a matter of fact columns 33 toll 149 are all numeric (most values for these columns is 0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bad #: input row #(byte offset to last char examined) [field #, declaration] diagnostic, "text consumed"[last char examined]&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;1: 1(255) [103, INT4] missing field - fillRecord not enabled, "0"[0x0a&amp;lt;LF&amp;gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to see if there were any Carriage Returns (CR) in the clumn, but could not.&lt;/P&gt;&lt;P&gt;I tried using the -fillRecord option in the nzload commad but to no success. May be I did not know how ot use it.&lt;/P&gt;&lt;P&gt;Also, what is more puzziling is how come nzload is writing only 103 column values to the .bad file and not the entire record?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on how to circumvent this problem????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Bhavani kumar Metla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Feb 2014 10:26:35 GMT</pubDate>
    <dc:creator>bhavani</dc:creator>
    <dc:date>2014-02-27T10:26:35Z</dc:date>
    <item>
      <title>SAS Data Load To Netezza Fails</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-Load-To-Netezza-Fails/m-p/188633#M265886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have this issue where in the data load to a Netezza table is failing. This is a new implementation that we are doing.&lt;/P&gt;&lt;P&gt;My Environment:&lt;/P&gt;&lt;P&gt;SAS 9.3&lt;/P&gt;&lt;P&gt;AIX&lt;/P&gt;&lt;P&gt;Netezza.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with 149 columns with mostly numeric values (132 to be precise). I have a script that uses NZLOAD lo load the netezza table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Command:&lt;/P&gt;&lt;P&gt;nzload -host $enzeesrv -db $enzeedb -u $enzeeusr -pw $enzeepwd -df $path/$pipename -t $tablename -delim '|' -lf $path/$pipename.log -bf $path/$pipename.bad -MaxErrors 1 -crInString&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I call this script from a SAS job. The Longest record length = 1500 and I am using LRECL=2500 (just to accomodate).&lt;/P&gt;&lt;P&gt;The load is failing citing the following reason in the log file. I am using PIPE '|' as delimited to load the UNIX pipe.&lt;/P&gt;&lt;P&gt;It is failing on the very 1st for the 103rd column whose value is a 0. As a matter of fact columns 33 toll 149 are all numeric (most values for these columns is 0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bad #: input row #(byte offset to last char examined) [field #, declaration] diagnostic, "text consumed"[last char examined]&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;1: 1(255) [103, INT4] missing field - fillRecord not enabled, "0"[0x0a&amp;lt;LF&amp;gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to see if there were any Carriage Returns (CR) in the clumn, but could not.&lt;/P&gt;&lt;P&gt;I tried using the -fillRecord option in the nzload commad but to no success. May be I did not know how ot use it.&lt;/P&gt;&lt;P&gt;Also, what is more puzziling is how come nzload is writing only 103 column values to the .bad file and not the entire record?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on how to circumvent this problem????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Bhavani kumar Metla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 10:26:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Data-Load-To-Netezza-Fails/m-p/188633#M265886</guid>
      <dc:creator>bhavani</dc:creator>
      <dc:date>2014-02-27T10:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data Load To Netezza Fails</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-Load-To-Netezza-Fails/m-p/188634#M265887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So a bit out of my area w/ Netezza...but I seem to remember something about SAS not writing consecutive delimiters for null values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 13:10:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Data-Load-To-Netezza-Fails/m-p/188634#M265887</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2014-02-27T13:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data Load To Netezza Fails</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-Load-To-Netezza-Fails/m-p/188635#M265888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tested this with only 10 rows. All of them have values, yet it is failing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 16:09:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Data-Load-To-Netezza-Fails/m-p/188635#M265888</guid>
      <dc:creator>bhavani</dc:creator>
      <dc:date>2014-02-27T16:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data Load To Netezza Fails</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-Load-To-Netezza-Fails/m-p/688553#M265889</link>
      <description>&lt;P&gt;I had the same error about "missing field" when bulk loading from SAS 9.4 (Windows 10) to Netezza. In my case, there was a line break within a value, causing Netezza to interpret it as two short rows instead of one full row.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 15:30:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Data-Load-To-Netezza-Fails/m-p/688553#M265889</guid>
      <dc:creator>AndrewZ</dc:creator>
      <dc:date>2020-10-02T15:30:36Z</dc:date>
    </item>
  </channel>
</rss>

