<?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 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Append/m-p/30275#M7166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom's right on what needs to be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Often, when we get data from different providers, the lengths of text fields are different.&amp;nbsp; One of the beauties of SAS is that it can handle data like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vicky, if 'combine' already exists, you can use a data step to replace it with an new version that changes the lengths of name and city.&amp;nbsp; You can also use a data step to create the data set 'combine' with no observations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2012 23:30:51 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2012-03-13T23:30:51Z</dc:date>
    <item>
      <title>Proc Append</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Append/m-p/30273#M7164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using proc append inside a macro and having variable length issues. Below is my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Macro ass(dat);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc Append base = combine data = &amp;amp;dat. Force;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Mend;&lt;/P&gt;&lt;P&gt;%dat(data1);&lt;/P&gt;&lt;P&gt;%dat(data2);&lt;/P&gt;&lt;P&gt;%dat(data3);&lt;/P&gt;&lt;P&gt;%dat(data4);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 variables in all the 4 datasets (Name, City, Balance) and the length of Name and City are different in each one those datasets. Now while appending it is truncating the extra length in dataset 2,3&amp;amp; 4. Is there a way to append the datasets without truncating the Name and City values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 22:57:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Append/m-p/30273#M7164</guid>
      <dc:creator>vicky07</dc:creator>
      <dc:date>2012-03-13T22:57:01Z</dc:date>
    </item>
    <item>
      <title>Proc Append</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Append/m-p/30274#M7165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to create the base dataset (COMBINE in your code) with variables long enough so that when the others are appended the data is not truncated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are the datasets in different formats?&lt;/P&gt;&lt;P&gt;And since they are in different formats why are you appending them?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 23:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Append/m-p/30274#M7165</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-03-13T23:10:28Z</dc:date>
    </item>
    <item>
      <title>Proc Append</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Append/m-p/30275#M7166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom's right on what needs to be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Often, when we get data from different providers, the lengths of text fields are different.&amp;nbsp; One of the beauties of SAS is that it can handle data like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vicky, if 'combine' already exists, you can use a data step to replace it with an new version that changes the lengths of name and city.&amp;nbsp; You can also use a data step to create the data set 'combine' with no observations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 23:30:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Append/m-p/30275#M7166</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-03-13T23:30:51Z</dc:date>
    </item>
    <item>
      <title>Proc Append</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Append/m-p/30276#M7167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for different length is the datsets are created by different users and I need to append all of them as one dateset and upload it to a server. I can use data &amp;amp; set steps along with length statements to combine but the problem is the number&amp;nbsp; of datsets that I get&amp;nbsp; might vary, like sometimes I can set 10 and some times just 4. So i thought append will&amp;nbsp; be easier to handle instead of&amp;nbsp; data&amp;amp;set statements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating an empty datasets with variables long enough make sense. Thanks for the solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 00:05:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Append/m-p/30276#M7167</guid>
      <dc:creator>vicky07</dc:creator>
      <dc:date>2012-03-14T00:05:57Z</dc:date>
    </item>
    <item>
      <title>Proc Append</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Append/m-p/30277#M7168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doc - Got it. Thanks for the reply!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 00:07:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Append/m-p/30277#M7168</guid>
      <dc:creator>vicky07</dc:creator>
      <dc:date>2012-03-14T00:07:41Z</dc:date>
    </item>
  </channel>
</rss>

