<?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: Create a dataset of variables generated sequentially in a %until loop in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-a-dataset-of-variables-generated-sequentially-in-a-until/m-p/50830#M10638</link>
    <description>You will need to generate the SAS code and use CREATE TABLE, or consider a DATA step approach where you can create more than one SAS member/table with a single pass of an input file, again with your SAS macro code needing to generate the DATA statement parameters and associated OUTPUT statements.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Fri, 16 Jul 2010 17:10:47 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2010-07-16T17:10:47Z</dc:date>
    <item>
      <title>Create a dataset of variables generated sequentially in a %until loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-dataset-of-variables-generated-sequentially-in-a-until/m-p/50829#M10637</link>
      <description>%do %until (&amp;amp;Max_V1. le 5);&lt;BR /&gt;
&lt;BR /&gt;
a few more lines of code goes here........then ......&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
Select Variable INTO: Drop_Var &lt;BR /&gt;
from Spdework.varlist where VarianceInflation = (select max(Varia) as MV&lt;BR /&gt;
from varlist);&lt;BR /&gt;
quit;&lt;BR /&gt;
 &lt;I&gt;&lt;B&gt;Question&lt;/B&gt;&lt;/I&gt;&lt;BR /&gt;
&lt;B&gt;*At each iteration &amp;amp;Drop_Var contains a new variable. How can I create a new Dataset at this stage to hold all variables generated by  &amp;amp;Drop_Var as observations.&lt;/B&gt; &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
Select Variable INTO: L_F_Vars SEPARATED by ' ' &lt;BR /&gt;
From Varlist&lt;BR /&gt;
Where Variable "&amp;amp;Drop_Var.";&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
%END;&lt;BR /&gt;
&lt;BR /&gt;
%mend auto_vif;&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: DB_ECON

Message was edited by: DB_ECON</description>
      <pubDate>Fri, 16 Jul 2010 14:48:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-dataset-of-variables-generated-sequentially-in-a-until/m-p/50829#M10637</guid>
      <dc:creator>DB_ECON</dc:creator>
      <dc:date>2010-07-16T14:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create a dataset of variables generated sequentially in a %until loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-dataset-of-variables-generated-sequentially-in-a-until/m-p/50830#M10638</link>
      <description>You will need to generate the SAS code and use CREATE TABLE, or consider a DATA step approach where you can create more than one SAS member/table with a single pass of an input file, again with your SAS macro code needing to generate the DATA statement parameters and associated OUTPUT statements.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 16 Jul 2010 17:10:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-dataset-of-variables-generated-sequentially-in-a-until/m-p/50830#M10638</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-07-16T17:10:47Z</dc:date>
    </item>
  </channel>
</rss>

