<?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: Concatenate many datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Concatenate-many-datasets/m-p/310397#M270705</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set
  a1y
  b2y
  c3y
  indsname=_inname
;
inname = _inname;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you're having a larger bunch of datasets, you might consider to use a data _null_step with call execute to build that data step.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2016 15:01:09 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-11-09T15:01:09Z</dc:date>
    <item>
      <title>Concatenate many datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenate-many-datasets/m-p/310396#M270704</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a bunch of datasets labels a1y b2y c3y.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to concatenate them into a single one, which would have a variable indicating the name of the original dataset.&lt;/P&gt;
&lt;P&gt;It's probably easy, but I didn't find how.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 14:50:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenate-many-datasets/m-p/310396#M270704</guid>
      <dc:creator>Demographer</dc:creator>
      <dc:date>2016-11-09T14:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate many datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenate-many-datasets/m-p/310397#M270705</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set
  a1y
  b2y
  c3y
  indsname=_inname
;
inname = _inname;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you're having a larger bunch of datasets, you might consider to use a data _null_step with call execute to build that data step.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 15:01:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenate-many-datasets/m-p/310397#M270705</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-09T15:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate many datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenate-many-datasets/m-p/310410#M270706</link>
      <description>&lt;P&gt;Good practice would be to set the length of the inname variable so the whole dataset name fits. Length of $ 41 will allow for the maximum 8 characters for library, the period separator and 32 characters for the data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have similar named sets like: A1y A2y A3y you can use a List modifier of a colon after the stem to get all similar names. A: would include all data sets in the library whose names start with A for instance.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 15:35:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenate-many-datasets/m-p/310410#M270706</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-11-09T15:35:24Z</dc:date>
    </item>
  </channel>
</rss>

