<?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: How can we avoid warnings while Proc Append multiple datasets in Do loop? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-can-we-avoid-warnings-while-Proc-Append-multiple-datasets-in/m-p/712313#M219603</link>
    <description>&lt;P&gt;Why do you want to avoid the warnings? They are there for a reason and can alert you to possible data truncation.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2021 06:07:10 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2021-01-19T06:07:10Z</dc:date>
    <item>
      <title>How can we avoid warnings while Proc Append multiple datasets in Do loop?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-we-avoid-warnings-while-Proc-Append-multiple-datasets-in/m-p/712306#M219597</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I used following code for appending multiple datasets in macro code %Do loop.&lt;/P&gt;&lt;P&gt;Proc Append base= DataJoin data= ABC_join&amp;amp;i force; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where i = 1 to n&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I'm getting warnings like&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Variable XYZ has different lengths on BASE and DATA files (BASE 16 DATA 15)."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I used force option.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;also used&amp;nbsp;option varlenchk=nowarn; in code but still it is showing same warnings&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;any other way is there to avoid these warnings?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 04:48:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-we-avoid-warnings-while-Proc-Append-multiple-datasets-in/m-p/712306#M219597</guid>
      <dc:creator>akshayn951</dc:creator>
      <dc:date>2021-01-19T04:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can we avoid warnings while Proc Append multiple datasets in Do loop?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-we-avoid-warnings-while-Proc-Append-multiple-datasets-in/m-p/712313#M219603</link>
      <description>&lt;P&gt;Why do you want to avoid the warnings? They are there for a reason and can alert you to possible data truncation.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 06:07:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-we-avoid-warnings-while-Proc-Append-multiple-datasets-in/m-p/712313#M219603</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-01-19T06:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can we avoid warnings while Proc Append multiple datasets in Do loop?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-we-avoid-warnings-while-Proc-Append-multiple-datasets-in/m-p/712320#M219607</link>
      <description>&lt;P&gt;Make the variables the correct length to avoid that very valid warning.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 06:35:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-we-avoid-warnings-while-Proc-Append-multiple-datasets-in/m-p/712320#M219607</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-01-19T06:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can we avoid warnings while Proc Append multiple datasets in Do loop?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-we-avoid-warnings-while-Proc-Append-multiple-datasets-in/m-p/712427#M219649</link>
      <description>&lt;P&gt;Would I be correct in assuming that your data= ABC_join&amp;amp;i data sets are coming from Proc Import?&lt;/P&gt;
&lt;P&gt;Proc Import makes assumptions as to variable type and length for each data set created and so has no guarantee that the lengths or even types of the same named variables will be the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best is to read the data in the proper form at the outset.&lt;/P&gt;
&lt;P&gt;Second, and tedious, is to have a step "adjust" things.&lt;/P&gt;
&lt;P&gt;Third, how do you know that the length of the variable assigned in the Base data set is correct, i.e. long enough to hold the longest valid value?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 15:49:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-we-avoid-warnings-while-Proc-Append-multiple-datasets-in/m-p/712427#M219649</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-01-19T15:49:46Z</dc:date>
    </item>
  </channel>
</rss>

