<?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: Can we use dataset name in sequence with :  as like in Set Statement to output multiple datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-we-use-dataset-name-in-sequence-with-as-like-in-Set/m-p/827551#M326904</link>
    <description>&lt;P&gt;Dataset lists are only for&amp;nbsp;&lt;EM&gt;existing&lt;/EM&gt; datasets (whenever they are used, the data step compiler searches for the datasets), so it makes no sense having them in a DATA statement. To automatically create a number of datasets, you need to use the macro language.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Aug 2022 07:42:35 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-08-08T07:42:35Z</dc:date>
    <item>
      <title>Can we use dataset name in sequence with :  as like in Set Statement to output multiple datasets?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-we-use-dataset-name-in-sequence-with-as-like-in-Set/m-p/827550#M326903</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just i would like to know, In SET statement we are able to use multiple dataset name which is in sequence like below to create a dataset,&lt;/P&gt;&lt;P&gt;Data C4;&lt;/P&gt;&lt;P&gt;Set C1-C3;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But why cant we use the same in Data step as below to output many Datasets in sequence?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data C1-C3;&lt;/P&gt;&lt;P&gt;set C4;&lt;/P&gt;&lt;P&gt;if a=1 then output C1;&lt;/P&gt;&lt;P&gt;if a=2 then output C2;&lt;/P&gt;&lt;P&gt;if a=3 then output C3;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 07:32:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-we-use-dataset-name-in-sequence-with-as-like-in-Set/m-p/827550#M326903</guid>
      <dc:creator>Thamu17</dc:creator>
      <dc:date>2022-08-08T07:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use dataset name in sequence with :  as like in Set Statement to output multiple datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-we-use-dataset-name-in-sequence-with-as-like-in-Set/m-p/827551#M326904</link>
      <description>&lt;P&gt;Dataset lists are only for&amp;nbsp;&lt;EM&gt;existing&lt;/EM&gt; datasets (whenever they are used, the data step compiler searches for the datasets), so it makes no sense having them in a DATA statement. To automatically create a number of datasets, you need to use the macro language.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 07:42:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-we-use-dataset-name-in-sequence-with-as-like-in-Set/m-p/827551#M326904</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-08-08T07:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use dataset name in sequence with :  as like in Set Statement to output multiple datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-we-use-dataset-name-in-sequence-with-as-like-in-Set/m-p/827567#M326914</link>
      <description>&lt;P&gt;Why do you want to distribute the obs in c4? Creating multiple datasets is not necessary and sometimes it will even increase the complexity of following steps.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 09:30:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-we-use-dataset-name-in-sequence-with-as-like-in-Set/m-p/827567#M326914</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-08-08T09:30:43Z</dc:date>
    </item>
  </channel>
</rss>

