<?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: Proc append  hide  warnings in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-append-hide-warnings/m-p/649320#M194639</link>
    <description>&lt;P&gt;If it's just conflicts in variable lengths, probably would be easiest to fix the length of variables in work.final to match the length of columns in oracle_table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 May 2020 18:13:32 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2020-05-20T18:13:32Z</dc:date>
    <item>
      <title>Proc append  hide  warnings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-append-hide-warnings/m-p/649318#M194638</link>
      <description>&lt;P&gt;Hi SAS users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am loading SAS dataset to ORacle table of around 500 attributes. I am getting big list of warnings of base and data length. How to hide them to not show in the log?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my proc statement and i have used NOWARN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc Append Base=&amp;lt;Oracle_table&amp;gt; Data=FINAL FORCE NOWARN; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ana&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 17:55:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-append-hide-warnings/m-p/649318#M194638</guid>
      <dc:creator>SASAna</dc:creator>
      <dc:date>2020-05-20T17:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc append  hide  warnings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-append-hide-warnings/m-p/649320#M194639</link>
      <description>&lt;P&gt;If it's just conflicts in variable lengths, probably would be easiest to fix the length of variables in work.final to match the length of columns in oracle_table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 18:13:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-append-hide-warnings/m-p/649320#M194639</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2020-05-20T18:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc append  hide  warnings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-append-hide-warnings/m-p/649330#M194644</link>
      <description>&lt;P&gt;These messages have a PURPOSE. Adapt your dataset structure to that of the Oracle table when you create your dataset.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 18:34:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-append-hide-warnings/m-p/649330#M194644</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-20T18:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc append  hide  warnings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-append-hide-warnings/m-p/649358#M194656</link>
      <description>&lt;P&gt;As others have remarked, the messages are there for a reason. But on the other hand, you may have character columns that are shorter that the corresponding columns in Oracle. That is not really a problem, and I agree that it can be kind of irritating to see all those messages for no other reason than that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One fast and dirty solution could be this: modify your FINAL table to look like the Oracle table:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options compress=char; /* saves disk space when a lot of text columns are longer that necessary */

data final;
  if 0 then set &amp;lt;Oracle_table&amp;gt;; /* All the relevant variables should then have the right attributes */
  /* here goes the rest of the code to create WORK.FINAL */
  /* but excluding LENGTH statements for output variables, they are already declared */
run;

Proc append base=&amp;lt;Oracle_table&amp;gt; data=FINAL; /* FORCE should not be necessary */
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or, if the final data step ends up taking too long and using too much disk space that way, you can create a data step view:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data v_FINAL/view=v_FINAL;
  if 0 then set &amp;lt;Oracle_table&amp;gt;;
  set FINAL;
run;

Proc append base=&amp;lt;Oracle_table&amp;gt; data=v_FINAL;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just make sure that you are not missing anything important by doing this (scrutinize those pesky warnings before you go fast and dirty).&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 19:29:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-append-hide-warnings/m-p/649358#M194656</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2020-05-20T19:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc append  hide  warnings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-append-hide-warnings/m-p/649525#M194741</link>
      <description>Do you try PROC SQL + INSERT INTO ?</description>
      <pubDate>Thu, 21 May 2020 11:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-append-hide-warnings/m-p/649525#M194741</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-05-21T11:15:15Z</dc:date>
    </item>
  </channel>
</rss>

