<?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 PROC append .. different lengths  warning in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-append-different-lengths-warning/m-p/330267#M74033</link>
    <description>&lt;P&gt;Hi SAS Users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to check if there is any way to avoid truncation of the data for the below scenario of data append using proc append.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 10 different tables data i am appending which has different lengths and different data types (around 500 attriutes in each table).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did reformatting of the data for all the variables which ever was different , but due to length issues , data is being truncated after appending it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data length X $10. Y $20, ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Proc Append &amp;nbsp;Base= Base_table &amp;nbsp; &amp;nbsp;&amp;nbsp;Data=&amp;nbsp;sas_ds &amp;nbsp; &amp;nbsp;FORCE NOWARN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use length statement for dataset sas_ds by taking the max length of the attributes, but that did not help me much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please suggest the options?&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>Mon, 06 Feb 2017 18:53:30 GMT</pubDate>
    <dc:creator>SASAna</dc:creator>
    <dc:date>2017-02-06T18:53:30Z</dc:date>
    <item>
      <title>PROC append .. different lengths  warning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-append-different-lengths-warning/m-p/330267#M74033</link>
      <description>&lt;P&gt;Hi SAS Users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to check if there is any way to avoid truncation of the data for the below scenario of data append using proc append.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 10 different tables data i am appending which has different lengths and different data types (around 500 attriutes in each table).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did reformatting of the data for all the variables which ever was different , but due to length issues , data is being truncated after appending it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data length X $10. Y $20, ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Proc Append &amp;nbsp;Base= Base_table &amp;nbsp; &amp;nbsp;&amp;nbsp;Data=&amp;nbsp;sas_ds &amp;nbsp; &amp;nbsp;FORCE NOWARN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use length statement for dataset sas_ds by taking the max length of the attributes, but that did not help me much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please suggest the options?&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>Mon, 06 Feb 2017 18:53:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-append-different-lengths-warning/m-p/330267#M74033</guid>
      <dc:creator>SASAna</dc:creator>
      <dc:date>2017-02-06T18:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: PROC append .. different lengths  warning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-append-different-lengths-warning/m-p/330269#M74035</link>
      <description>&lt;P&gt;You need to make the variables in BASE table have the proper length since that is the one that defines the table that PROC APPEND is adding the data into.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that SAS will issue a warning if the vairable in the DATA table is defined as longer than the variable in the BASE table, even if all of the actual values will fit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 18:58:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-append-different-lengths-warning/m-p/330269#M74035</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-02-06T18:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: PROC append .. different lengths  warning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-append-different-lengths-warning/m-p/330318#M74064</link>
      <description>Did you mean that you tried LENGTH in proc append? That's not possible. You could however use views to expand length of variables and append from them.&lt;BR /&gt;&lt;BR /&gt;You said you reformatted all variables. Did you mean changing the SAS format? If so, that doesn't help. &lt;BR /&gt;&lt;BR /&gt;Do what is your challenge? Syntax or the volume (no of variables)?</description>
      <pubDate>Mon, 06 Feb 2017 21:09:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-append-different-lengths-warning/m-p/330318#M74064</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-02-06T21:09:36Z</dc:date>
    </item>
  </channel>
</rss>

