<?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: Generating error files in proc append in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Generating-error-files-in-proc-append/m-p/575207#M162649</link>
    <description>&lt;P&gt;I don't understand.&amp;nbsp; Why would there be errors loading the data that you already processed with SAS.&lt;/P&gt;
&lt;P&gt;Shouldn't you catch the errors in the SAS code and publish any errors from there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or just load the data with native database tools and use whatever logging those tools provide.&lt;/P&gt;</description>
    <pubDate>Sun, 21 Jul 2019 15:31:40 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-07-21T15:31:40Z</dc:date>
    <item>
      <title>Generating error files in proc append</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Generating-error-files-in-proc-append/m-p/575202#M162646</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Previously we have designed our SAS jobs in a such a way that data will be read from files( .xl or csv) and then will be appended into Netezza database using proc append statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there are any errors , Error file (nzbad) will be generated during proc append statement&amp;nbsp;. We have defined in proc append statement as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BULKLOAD=YES&lt;/P&gt;&lt;P&gt;BL_DATAFILE='/data/sas/abc.dat'&lt;BR /&gt;BL_USE_PIPE=NO&lt;BR /&gt;BL_DELETE_DATAFILE=Yes&lt;BR /&gt;BL_OPTIONS="logdir'/data/sas/o' maxErrors 1"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now we have migrated to DB2 database but I cant able to use the same option mentioned above.&amp;nbsp; For bulk load option , we have use BL_METHOD = CLILOAD , but when we use this we are not able to use BL_OPTIONS = "logdir ......maxErrors 1".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a requirement to generate a error file if there are any errors in the txt file as well we have to use CLILOAD option. Is there any way to achieve this ??? Thanks in Advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2019 13:56:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Generating-error-files-in-proc-append/m-p/575202#M162646</guid>
      <dc:creator>helannivas88</dc:creator>
      <dc:date>2019-07-21T13:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Generating error files in proc append</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Generating-error-files-in-proc-append/m-p/575207#M162649</link>
      <description>&lt;P&gt;I don't understand.&amp;nbsp; Why would there be errors loading the data that you already processed with SAS.&lt;/P&gt;
&lt;P&gt;Shouldn't you catch the errors in the SAS code and publish any errors from there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or just load the data with native database tools and use whatever logging those tools provide.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2019 15:31:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Generating-error-files-in-proc-append/m-p/575207#M162649</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-21T15:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Generating error files in proc append</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Generating-error-files-in-proc-append/m-p/575222#M162659</link>
      <description>&lt;P&gt;How are you connecting to your DB2 database, via Access to DB2 or Access to ODBC?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And which SAS version are you using, Viya appears more restrictive.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, it seems like using the CLILOAD does disable a bunch of other options, most of it is listed here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=p1w9ial7770y6tn1rtfiuwtfg088.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=p1w9ial7770y6tn1rtfiuwtfg088.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following are the available options when using CLILOAD, unfortunately most of the options you've specified are not available but perhaps some of the others allow you to get what you need?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV id="n124ejepzadz9rn1jf9iqbewsbqx" class="xis-subTopic"&gt;
&lt;DIV id="n0eaz82x0ycc67n1l3vm7bggqjdr" class="xis-topicContent"&gt;
&lt;DIV class="xis-listUnordered"&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV id="p06o1olijogdern1ut399njmybjd" class="xis-item"&gt;
&lt;DIV id="n0bayl63ju2toin1qpvtsmseewvz" class="xis-paraSimpleFirst"&gt;&lt;SPAN class="xis-xrefSee"&gt;&lt;A class="ng-scope" tabindex="0" title="BL_ALLOW_READ_ACCESS=" href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n0irdombzwth5tn14bep4068pv6g.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" data-docset-id="acreldb" data-docset-version="9.4" data-original-href="n0irdombzwth5tn14bep4068pv6g.htm"&gt;BL_ALLOW_READ_ACCESS=&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="p1vmcjwalzbgqhn1n8kx3tu722x1" class="xis-item"&gt;
&lt;DIV id="p0pd2wkrguep1qn1294bnjwiyk6c" class="xis-paraSimpleFirst"&gt;&lt;SPAN class="xis-xrefSee"&gt;&lt;A class="ng-scope" tabindex="0" title="BL_ALLOW_WRITE_ACCESS=" href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n1hhcofncjrxa9n1hlqyvn47j4y6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" data-docset-id="acreldb" data-docset-version="9.4" data-original-href="n1hhcofncjrxa9n1hlqyvn47j4y6.htm"&gt;BL_ALLOW_WRITE_ACCESS=&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="p0xaz8x96kl62mn11if99w7l0i7g" class="xis-item"&gt;
&lt;DIV id="p1dt1olju6f8wsn1xoc8v6rlwqmk" class="xis-paraSimpleFirst"&gt;&lt;SPAN class="xis-xrefSee"&gt;&lt;A class="ng-scope" tabindex="0" title="BL_COPY_LOCATION=" href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=p1464kj4tq0hu4n1ulk00ar5v1n0.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" data-docset-id="acreldb" data-docset-version="9.4" data-original-href="p1464kj4tq0hu4n1ulk00ar5v1n0.htm"&gt;BL_COPY_LOCATION=&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="n1h938qog0kb7xn10xi9psp14d8j" class="xis-item"&gt;
&lt;DIV id="p177ziqj64pmwvn1wf30ihyglhvi" class="xis-paraSimpleFirst"&gt;&lt;SPAN class="xis-xrefSee"&gt;&lt;A class="ng-scope" tabindex="0" title="BL_CPU_PARALLELISM=" href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n0qrcjuot34jx3n1auey37v5v6di.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" data-docset-id="acreldb" data-docset-version="9.4" data-original-href="n0qrcjuot34jx3n1auey37v5v6di.htm"&gt;BL_CPU_PARALLELISM=&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="p11zb7waoijmkhn1i8duiratly7u" class="xis-item"&gt;
&lt;DIV id="n076v9nmkrf5lnn1e8n6it8dj2lt" class="xis-paraSimpleFirst"&gt;&lt;SPAN class="xis-xrefSee"&gt;&lt;A class="ng-scope" tabindex="0" title="BL_DATA_BUFFER_SIZE=" href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=p0lpdlpfvgv4t4n137e2rclawdrx.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" data-docset-id="acreldb" data-docset-version="9.4" data-original-href="p0lpdlpfvgv4t4n137e2rclawdrx.htm"&gt;BL_DATA_BUFFER_SIZE=&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="n0s6yumari5jwpn16wvajgwnnj2h" class="xis-item"&gt;
&lt;DIV id="n1dmc6z66lzw67n1lk204zvgi4e1" class="xis-paraSimpleFirst"&gt;&lt;SPAN class="xis-xrefSee"&gt;&lt;A class="ng-scope" tabindex="0" title="BL_DISK_PARALLELISM=" href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n05i6qixs4ynyrn0z9ex8pm1xrxr.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" data-docset-id="acreldb" data-docset-version="9.4" data-original-href="n05i6qixs4ynyrn0z9ex8pm1xrxr.htm"&gt;BL_DISK_PARALLELISM=&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="n0911dbpnc1mgfn1pjzlweh3coik" class="xis-item"&gt;
&lt;DIV id="n0n23p8aeppva2n11an1moxib7r9" class="xis-paraSimpleFirst"&gt;&lt;SPAN class="xis-xrefSee"&gt;&lt;A class="ng-scope" tabindex="0" title="BL_EXCEPTION" href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=p0cqgwlzkam3w3n1kvilgywgnw0t.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" data-docset-id="acreldb" data-docset-version="9.4" data-original-href="p0cqgwlzkam3w3n1kvilgywgnw0t.htm"&gt;BL_EXCEPTION&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="n0xjbqo8abb4gln1f5b4cs3df5ag" class="xis-item"&gt;
&lt;DIV id="p1fzpdqp6xdhjrn1s63ruo2hax5q" class="xis-paraSimpleFirst"&gt;&lt;SPAN class="xis-xrefSee"&gt;&lt;A class="ng-scope" tabindex="0" title="BL_INDEXING_MODE=" href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=p0g0zv4nhl6o1ln0zi7vrecnwzwj.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" data-docset-id="acreldb" data-docset-version="9.4" data-original-href="p0g0zv4nhl6o1ln0zi7vrecnwzwj.htm"&gt;BL_INDEXING_MODE=&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="n00yxtxdio1hfon1cw0w83kemjhz" class="xis-item"&gt;
&lt;DIV id="p0r1807s1af9sbn14ai2gjm17ec0" class="xis-paraSimpleFirst"&gt;&lt;SPAN class="xis-xrefSee"&gt;&lt;A class="ng-scope" tabindex="0" title="BL_LOAD_REPLACE=" href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n1f8rtzlfmwlgkn1obao3geu5sj8.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" data-docset-id="acreldb" data-docset-version="9.4" data-original-href="n1f8rtzlfmwlgkn1obao3geu5sj8.htm"&gt;BL_LOAD_REPLACE=&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="n1gb23hxa01dutn11yxjgacspq9t" class="xis-item"&gt;
&lt;DIV id="n0n98bafmchpv9n1wvou5x4bkh9z" class="xis-paraSimpleFirst"&gt;&lt;SPAN class="xis-xrefSee"&gt;&lt;A class="ng-scope" tabindex="0" title="BL_LOG=" href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=p1q2c3m0among1n15x9ilnjb07yd.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" data-docset-id="acreldb" data-docset-version="9.4" data-original-href="p1q2c3m0among1n15x9ilnjb07yd.htm"&gt;BL_LOG=&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="p0ohu7aelyl6rcn13wpfp83bl382" class="xis-item"&gt;
&lt;DIV id="n0ulcp32bgf1y2n1nvihcggwzz3x" class="xis-paraSimpleFirst"&gt;&lt;SPAN class="xis-xrefSee"&gt;&lt;A class="ng-scope" tabindex="0" title="BL_METHOD=" href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=p0nv375n1p3497n14idt9erecnzf.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" data-docset-id="acreldb" data-docset-version="9.4" data-original-href="p0nv375n1p3497n14idt9erecnzf.htm"&gt;BL_METHOD=&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="p0nx0bgt6b6l9on178pzq62107x2" class="xis-item"&gt;
&lt;DIV id="p0rxjinsodpkthn1lcsakmo4wdu5" class="xis-paraSimpleFirst"&gt;&lt;SPAN class="xis-xrefSee"&gt;&lt;A class="ng-scope" tabindex="0" title="BL_OPTIONS=" href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n1o5mxmuhymlgwn15rzj5cp6qfxx.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" data-docset-id="acreldb" data-docset-version="9.4" data-original-href="n1o5mxmuhymlgwn15rzj5cp6qfxx.htm"&gt;BL_OPTIONS=&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="n0pi55qamy307rn1qwzjqs44apm4" class="xis-item"&gt;
&lt;DIV id="n1a4x9g1tu79xnn1k6prwkly3a6p" class="xis-paraSimpleFirst"&gt;&lt;SPAN class="xis-xrefSee"&gt;&lt;A class="ng-scope" tabindex="0" title="L_RECOVERABLE=" href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n0rjwsf2imzsnan11vf4t9uq6roz.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" data-docset-id="acreldb" data-docset-version="9.4" data-original-href="n0rjwsf2imzsnan11vf4t9uq6roz.htm"&gt;BL_RECOVERABLE=&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="n0mh755knj3iwpn1gj8fwc6cxtse" class="xis-item"&gt;
&lt;DIV id="p1vtmlypgoqintn1mlmxz9aj1g5o" class="xis-paraSimpleFirst"&gt;&lt;SPAN class="xis-xrefSee"&gt;&lt;A class="ng-scope" tabindex="0" title="BL_REMOTE_FILE=" href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n1tim0q77kkpljn1p2jdwqsiycxl.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" data-docset-id="acreldb" data-docset-version="9.4" data-original-href="n1tim0q77kkpljn1p2jdwqsiycxl.htm"&gt;BL_REMOTE_FILE=&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="p19dm2s0d9h9amn12ik4r68vxqas" class="xis-subTopic"&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/182470"&gt;@helannivas88&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Previously we have designed our SAS jobs in a such a way that data will be read from files( .xl or csv) and then will be appended into Netezza database using proc append statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there are any errors , Error file (nzbad) will be generated during proc append statement&amp;nbsp;. We have defined in proc append statement as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BULKLOAD=YES&lt;/P&gt;
&lt;P&gt;BL_DATAFILE='/data/sas/abc.dat'&lt;BR /&gt;BL_USE_PIPE=NO&lt;BR /&gt;BL_DELETE_DATAFILE=Yes&lt;BR /&gt;BL_OPTIONS="logdir'/data/sas/o' maxErrors 1"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now we have migrated to DB2 database but I cant able to use the same option mentioned above.&amp;nbsp; For bulk load option , we have use BL_METHOD = CLILOAD , but when we use this we are not able to use BL_OPTIONS = "logdir ......maxErrors 1".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a requirement to generate a error file if there are any errors in the txt file as well we have to use CLILOAD option. Is there any way to achieve this ??? Thanks in Advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 21 Jul 2019 20:03:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Generating-error-files-in-proc-append/m-p/575222#M162659</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-21T20:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Generating error files in proc append</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Generating-error-files-in-proc-append/m-p/575238#M162668</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/182470"&gt;@helannivas88&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Different database, different rules! Well, actually, it's quite similar for all databases but you still need to read the docu (link&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;posted) and use a valid combination of options specific for the database you're connecting to.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2019 23:07:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Generating-error-files-in-proc-append/m-p/575238#M162668</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-07-21T23:07:16Z</dc:date>
    </item>
  </channel>
</rss>

