<?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 Creating a Macro variable By using  ODS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-Macro-variable-By-using-ODS/m-p/52994#M11209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi every one...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Is it possible to create a macro variable by Using ODS statement???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If YES ,could you please explain..,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanjeev.k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2012 12:25:29 GMT</pubDate>
    <dc:creator>kuridisanjeev</dc:creator>
    <dc:date>2012-04-02T12:25:29Z</dc:date>
    <item>
      <title>Creating a Macro variable By using  ODS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-Macro-variable-By-using-ODS/m-p/52994#M11209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi every one...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Is it possible to create a macro variable by Using ODS statement???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If YES ,could you please explain..,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanjeev.k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 12:25:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-Macro-variable-By-using-ODS/m-p/52994#M11209</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2012-04-02T12:25:29Z</dc:date>
    </item>
    <item>
      <title>Creating a Macro variable use ODs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-Macro-variable-By-using-ODS/m-p/52995#M11210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; No, use the %let statement to create a macro variable for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 12:27:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-Macro-variable-By-using-ODS/m-p/52995#M11210</guid>
      <dc:creator>Gerd47</dc:creator>
      <dc:date>2012-04-02T12:27:32Z</dc:date>
    </item>
    <item>
      <title>Creating a Macro variable By using  ODS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-Macro-variable-By-using-ODS/m-p/52996#M11211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gerd47,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think there is a way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please go through bellow screen shot,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="macro.JPG" class="jive-image-thumbnail jive-image" onclick="" src="https://communities.sas.com/legacyfs/online/1594_macro.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanjeev.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 12:43:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-Macro-variable-By-using-ODS/m-p/52996#M11211</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2012-04-02T12:43:41Z</dc:date>
    </item>
    <item>
      <title>Creating a Macro variable By using  ODS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-Macro-variable-By-using-ODS/m-p/52997#M11212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;The MATCHALL= option for the OUTPUT destination on the ODS statement can be used to name a macro variable that will&lt;BR /&gt;contain a list of SAS data tables. In the following example a PROC UNIVARIATE is executed with a BY statement. For each&lt;BR /&gt;value of the BY variable (PRODUCT) a data set will be created which will contain the summary known as MOMENTS. The&lt;BR /&gt;MATCHALL option requests separate data sets and the list of the names of these data sets is to be written to the macro&lt;BR /&gt;variable &amp;amp;NAMELIST.&lt;BR /&gt;ods output Moments(match_all=namelist)=work.Moments;&lt;BR /&gt;proc univariate data=magdata;&lt;BR /&gt;by product;&lt;BR /&gt;var ampida;&lt;BR /&gt;title1 'ODS Output - with BY Statement';&lt;BR /&gt;run;&lt;BR /&gt;ods output close;&lt;BR /&gt;Later these data sets can be combined by using the macro variable &amp;amp;NAMELIST.&lt;BR /&gt;data allmoments;&lt;BR /&gt;set &amp;amp;namelist;&lt;BR /&gt;run;&lt;BR /&gt;The LOG shows.&lt;/P&gt;&lt;P&gt;53&lt;BR /&gt;54 data allmoments;&lt;BR /&gt;55 set &amp;amp;namelist;&lt;BR /&gt;56 run;&lt;BR /&gt;NOTE: There were 6 observations read from the data set WORK.MOMENTS.&lt;BR /&gt;NOTE: There were 6 observations read from the data set WORK.MOMENTS1.&lt;BR /&gt;NOTE: There were 6 observations read from the data set WORK.MOMENTS2.&lt;BR /&gt;NOTE: There were 6 observations read from the data set WORK.MOMENTS3.&lt;BR /&gt;NOTE: There were 6 observations read from the data set WORK.MOMENTS4.&lt;BR /&gt;NOTE: The data set WORK.ALLMOMENTS has 30 observations and 11 variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 12:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-Macro-variable-By-using-ODS/m-p/52997#M11212</guid>
      <dc:creator>Hima</dc:creator>
      <dc:date>2012-04-02T12:46:25Z</dc:date>
    </item>
    <item>
      <title>Creating a Macro variable By using  ODS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-Macro-variable-By-using-ODS/m-p/52998#M11213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Ah, ok. Didn't know this option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 12:57:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-Macro-variable-By-using-ODS/m-p/52998#M11213</guid>
      <dc:creator>Gerd47</dc:creator>
      <dc:date>2012-04-02T12:57:32Z</dc:date>
    </item>
    <item>
      <title>Creating a Macro variable By using  ODS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-Macro-variable-By-using-ODS/m-p/52999#M11214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Hima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 13:07:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-Macro-variable-By-using-ODS/m-p/52999#M11214</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2012-04-02T13:07:18Z</dc:date>
    </item>
  </channel>
</rss>

