<?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 Is it possible to create a dataset by looping variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-create-a-dataset-by-looping-variable/m-p/8658#M350</link>
    <description>Assuming I have 3 variables a, b &amp;amp; c&lt;BR /&gt;
&lt;BR /&gt;
where a = 1,2&lt;BR /&gt;
b = 3, 4&lt;BR /&gt;
c = 5, 6&lt;BR /&gt;
&lt;BR /&gt;
Can I create a dataset that looks like this.&lt;BR /&gt;
&lt;BR /&gt;
a -- b -- c&lt;BR /&gt;
1 -- 3 -- 5&lt;BR /&gt;
1 -- 3 -- 6&lt;BR /&gt;
1 -- 4 -- 5&lt;BR /&gt;
1 -- 4 -- 6&lt;BR /&gt;
2 -- 3 -- 5&lt;BR /&gt;
2 -- 3 -- 6&lt;BR /&gt;
2 -- 4 -- 5&lt;BR /&gt;
2 -- 4 -- 6&lt;BR /&gt;
&lt;BR /&gt;
I tried doing this with some loops, but was not able to get it to work. So any help would be quite helpful, because using my actual data I would have 300-400k different combinations.

Message was edited by: DarknessFalls</description>
    <pubDate>Fri, 11 Feb 2011 23:34:41 GMT</pubDate>
    <dc:creator>DarknessFalls</dc:creator>
    <dc:date>2011-02-11T23:34:41Z</dc:date>
    <item>
      <title>Is it possible to create a dataset by looping variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-create-a-dataset-by-looping-variable/m-p/8658#M350</link>
      <description>Assuming I have 3 variables a, b &amp;amp; c&lt;BR /&gt;
&lt;BR /&gt;
where a = 1,2&lt;BR /&gt;
b = 3, 4&lt;BR /&gt;
c = 5, 6&lt;BR /&gt;
&lt;BR /&gt;
Can I create a dataset that looks like this.&lt;BR /&gt;
&lt;BR /&gt;
a -- b -- c&lt;BR /&gt;
1 -- 3 -- 5&lt;BR /&gt;
1 -- 3 -- 6&lt;BR /&gt;
1 -- 4 -- 5&lt;BR /&gt;
1 -- 4 -- 6&lt;BR /&gt;
2 -- 3 -- 5&lt;BR /&gt;
2 -- 3 -- 6&lt;BR /&gt;
2 -- 4 -- 5&lt;BR /&gt;
2 -- 4 -- 6&lt;BR /&gt;
&lt;BR /&gt;
I tried doing this with some loops, but was not able to get it to work. So any help would be quite helpful, because using my actual data I would have 300-400k different combinations.

Message was edited by: DarknessFalls</description>
      <pubDate>Fri, 11 Feb 2011 23:34:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-create-a-dataset-by-looping-variable/m-p/8658#M350</guid>
      <dc:creator>DarknessFalls</dc:creator>
      <dc:date>2011-02-11T23:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a dataset by looping variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-create-a-dataset-by-looping-variable/m-p/8659#M351</link>
      <description>&amp;gt; Assuming I have 3 variables a, b &amp;amp; c&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; where a = 1,2&lt;BR /&gt;
&amp;gt; b = 3, 4&lt;BR /&gt;
&amp;gt; c = 5, 6&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Can I create a dataset that looks like this.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; a -- b -- c&lt;BR /&gt;
&amp;gt; 1 -- 3 -- 5&lt;BR /&gt;
&amp;gt; 1 -- 3 -- 6&lt;BR /&gt;
&amp;gt; 1 -- 4 -- 5&lt;BR /&gt;
&amp;gt; 1 -- 4 -- 6&lt;BR /&gt;
&amp;gt; 2 -- 3 -- 5&lt;BR /&gt;
&amp;gt; 2 -- 3 -- 6&lt;BR /&gt;
&amp;gt; 2 -- 4 -- 5&lt;BR /&gt;
&amp;gt; 2 -- 4 -- 6&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I tried doing this with some loops, but was not able&lt;BR /&gt;
&amp;gt; to get it to work. So any help would be quite&lt;BR /&gt;
&amp;gt; helpful, because using my actual data I would have&lt;BR /&gt;
&amp;gt; 300-400k different combinations.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Message was edited by: DarknessFalls&lt;BR /&gt;
&lt;BR /&gt;
data;&lt;BR /&gt;
 do a = 1,2 ;&lt;BR /&gt;
 do b = 3, 4 ;&lt;BR /&gt;
 do c = 5, 6 ;&lt;BR /&gt;
  output ;&lt;BR /&gt;
end;end;end;&lt;BR /&gt;
run;</description>
      <pubDate>Sat, 12 Feb 2011 00:07:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-create-a-dataset-by-looping-variable/m-p/8659#M351</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-02-12T00:07:38Z</dc:date>
    </item>
  </channel>
</rss>

