<?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 Appending three data sets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Appending-three-data-sets/m-p/346738#M273219</link>
    <description>&lt;P&gt;Hi All.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am Appending&amp;nbsp;three data sets namely East, West, North.&lt;/P&gt;&lt;P&gt;Each data sets having six variables with same name.&lt;/P&gt;&lt;P&gt;There is one variable named Rgion which has of length 4 for East and West but of length 5 for North.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;written the below code snippets to appned&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data all;&lt;/P&gt;&lt;P&gt;set east west north;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data got appended, but in the region for North its coming Nort.&lt;/P&gt;&lt;P&gt;Why this is coming Nort and how to overcome this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Vishyy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Apr 2017 16:26:19 GMT</pubDate>
    <dc:creator>vishyy</dc:creator>
    <dc:date>2017-04-03T16:26:19Z</dc:date>
    <item>
      <title>Appending three data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Appending-three-data-sets/m-p/346738#M273219</link>
      <description>&lt;P&gt;Hi All.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am Appending&amp;nbsp;three data sets namely East, West, North.&lt;/P&gt;&lt;P&gt;Each data sets having six variables with same name.&lt;/P&gt;&lt;P&gt;There is one variable named Rgion which has of length 4 for East and West but of length 5 for North.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;written the below code snippets to appned&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data all;&lt;/P&gt;&lt;P&gt;set east west north;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data got appended, but in the region for North its coming Nort.&lt;/P&gt;&lt;P&gt;Why this is coming Nort and how to overcome this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Vishyy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 16:26:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Appending-three-data-sets/m-p/346738#M273219</guid>
      <dc:creator>vishyy</dc:creator>
      <dc:date>2017-04-03T16:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Appending three data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Appending-three-data-sets/m-p/346742#M273220</link>
      <description>&lt;P&gt;The lengths of variables will be set by the value in the first data set containing the variable. You should have a note in your log about variables with different lengths and possible truncation of data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could address that by either ensuring what ever process builds your sets that they have the same characterists before combing or add a Length statement before the SET statement to force all the sets to be treated as having the specified length.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data all;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; length Rgion $ 5;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; set east west north;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 16:35:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Appending-three-data-sets/m-p/346742#M273220</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-03T16:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Appending three data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Appending-three-data-sets/m-p/346805#M273221</link>
      <description>Research Program Data Vector for sas to better understand why this happens&lt;BR /&gt;&lt;BR /&gt;This is an untrained sas user question</description>
      <pubDate>Mon, 03 Apr 2017 18:57:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Appending-three-data-sets/m-p/346805#M273221</guid>
      <dc:creator>PatrickCuba</dc:creator>
      <dc:date>2017-04-03T18:57:59Z</dc:date>
    </item>
  </channel>
</rss>

