<?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: concatenating 10 data sets with same name variable with different lengths in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/concatenating-10-data-sets-with-same-name-variable-with/m-p/364985#M86638</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
 select * from z1
union all corr
 select * from z2
union all corr
............
 select * from z10
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 07 Jun 2017 13:55:36 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2017-06-07T13:55:36Z</dc:date>
    <item>
      <title>concatenating 10 data sets with same name variable with different lengths</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-10-data-sets-with-same-name-variable-with/m-p/364657#M86506</link>
      <description>&lt;P&gt;hello.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have ten datasets (z1-z10). they all have a variable named "group". the variable length varies in the ten datasets from 2 to 6.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a way i can concatenate all 10 datasets and have the "group" variable length be 6 in the final dataset without any data being truncated?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;many thanks.&lt;/P&gt;&lt;P&gt;christine&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 17:35:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-10-data-sets-with-same-name-variable-with/m-p/364657#M86506</guid>
      <dc:creator>christine1</dc:creator>
      <dc:date>2017-06-06T17:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating 10 data sets with same name variable with different lengths</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-10-data-sets-with-same-name-variable-with/m-p/364659#M86507</link>
      <description>&lt;P&gt;What about this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
length group $10.;
set z1-z10;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Jun 2017 17:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-10-data-sets-with-same-name-variable-with/m-p/364659#M86507</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-06T17:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating 10 data sets with same name variable with different lengths</title>
      <link>https://communities.sas.com/t5/SAS-Programming/concatenating-10-data-sets-with-same-name-variable-with/m-p/364985#M86638</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
 select * from z1
union all corr
 select * from z2
union all corr
............
 select * from z10
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Jun 2017 13:55:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/concatenating-10-data-sets-with-same-name-variable-with/m-p/364985#M86638</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-06-07T13:55:36Z</dc:date>
    </item>
  </channel>
</rss>

