<?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: how to chain datasets with same name and variables structure in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/how-to-chain-datasets-with-same-name-and-variables-structure/m-p/675230#M23613</link>
    <description>data vzk_2020;&lt;BR /&gt;set vzk_2020_1 -  vzk_2020_8 ;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;OR Just:&lt;BR /&gt;data vzk_2020;&lt;BR /&gt;set vzk_2020_: ;&lt;BR /&gt;run;</description>
    <pubDate>Fri, 07 Aug 2020 11:54:20 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2020-08-07T11:54:20Z</dc:date>
    <item>
      <title>how to chain datasets with same name and variables structure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-chain-datasets-with-same-name-and-variables-structure/m-p/675209#M23609</link>
      <description>&lt;P&gt;Hello SAS experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of datasets with the same name and variables structure, and I want to add them all in a single one.&lt;/P&gt;&lt;P&gt;this doesn't work:&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; vzk_2020;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; i=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;to&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;8&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; vzk_2020_i;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;what's the correct way?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;regards,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;PY&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 10:33:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-chain-datasets-with-same-name-and-variables-structure/m-p/675209#M23609</guid>
      <dc:creator>PierreYvesILY</dc:creator>
      <dc:date>2020-08-07T10:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to chain datasets with same name and variables structure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-chain-datasets-with-same-name-and-variables-structure/m-p/675211#M23610</link>
      <description>&lt;P&gt;This is where you need a macro. You need&amp;nbsp;&lt;EM&gt;one&lt;/EM&gt; SET statement, but multiple datasets in it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro dsnames;
%do i = 1 %to 8;
  vzk_2020_&amp;amp;i.
%end;
%mend;

data vzk_2020;
set
  %dsnames
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Take note where I placed semicolons, and where I omitted them.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 10:38:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-chain-datasets-with-same-name-and-variables-structure/m-p/675211#M23610</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-08-07T10:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to chain datasets with same name and variables structure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-chain-datasets-with-same-name-and-variables-structure/m-p/675213#M23611</link>
      <description>thank you Kurt, have a nice day!</description>
      <pubDate>Fri, 07 Aug 2020 10:43:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-chain-datasets-with-same-name-and-variables-structure/m-p/675213#M23611</guid>
      <dc:creator>PierreYvesILY</dc:creator>
      <dc:date>2020-08-07T10:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to chain datasets with same name and variables structure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-chain-datasets-with-same-name-and-variables-structure/m-p/675230#M23613</link>
      <description>data vzk_2020;&lt;BR /&gt;set vzk_2020_1 -  vzk_2020_8 ;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;OR Just:&lt;BR /&gt;data vzk_2020;&lt;BR /&gt;set vzk_2020_: ;&lt;BR /&gt;run;</description>
      <pubDate>Fri, 07 Aug 2020 11:54:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-chain-datasets-with-same-name-and-variables-structure/m-p/675230#M23613</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-08-07T11:54:20Z</dc:date>
    </item>
  </channel>
</rss>

