<?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: proc print on temporary variables created in macros in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-print-on-temporary-variables-created-in-macros/m-p/107627#M29963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for the reply, however, I am creating a new post to describe my problem at bit more clearly. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 May 2012 18:19:38 GMT</pubDate>
    <dc:creator>SeekYourWay</dc:creator>
    <dc:date>2012-05-10T18:19:38Z</dc:date>
    <item>
      <title>proc print on temporary variables created in macros</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-print-on-temporary-variables-created-in-macros/m-p/107622#M29958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to SAS macros, but have been trying to follow the logics of the program that I have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently, the program itself is made up of macros, and it creates a lot of temporary variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is....can I use proc print to generate a report that shows the values of temporary variables? Normally, when I do proc print, and use the "VAR" statement, it only allows me to choose column names that are in the original dataset columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 17:29:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-print-on-temporary-variables-created-in-macros/m-p/107622#M29958</guid>
      <dc:creator>SeekYourWay</dc:creator>
      <dc:date>2012-05-08T17:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc print on temporary variables created in macros</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-print-on-temporary-variables-created-in-macros/m-p/107623#M29959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried running the program with options mprint or mlogic set instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you'll need to include some explicit %put &amp;amp;my_mvar at different stages to check what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options mprint mlogic;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*run your code*/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 17:31:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-print-on-temporary-variables-created-in-macros/m-p/107623#M29959</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-05-08T17:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: proc print on temporary variables created in macros</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-print-on-temporary-variables-created-in-macros/m-p/107624#M29960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The simple version:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put _user_;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's a short-cut that displays all the macro variables you have created, but omits the automatic macro variables that the software creates for you.&amp;nbsp; You don't get control like you would with a VAR statement in PROC PRINT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to see the automatic variables, you can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put _automatic_;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if you just want all of them, there's:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put _all_;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are one or two more possibilities, but you're most likely looking for the first version (_user_).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 18:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-print-on-temporary-variables-created-in-macros/m-p/107624#M29960</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-05-08T18:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: proc print on temporary variables created in macros</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-print-on-temporary-variables-created-in-macros/m-p/107625#M29961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Options&amp;nbsp; symbolgen;&lt;/P&gt;&lt;P&gt;...is helpful too when you want the macro var resolution to go to your log without having to do %put statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 19:04:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-print-on-temporary-variables-created-in-macros/m-p/107625#M29961</guid>
      <dc:creator>JasonDiVirgilio</dc:creator>
      <dc:date>2012-05-08T19:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc print on temporary variables created in macros</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-print-on-temporary-variables-created-in-macros/m-p/107626#M29962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for the reply, however, I am creating a new post to describe my problem at bit more clearly. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 18:19:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-print-on-temporary-variables-created-in-macros/m-p/107626#M29962</guid>
      <dc:creator>SeekYourWay</dc:creator>
      <dc:date>2012-05-10T18:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc print on temporary variables created in macros</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-print-on-temporary-variables-created-in-macros/m-p/107627#M29963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for the reply, however, I am creating a new post to describe my problem at bit more clearly. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 18:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-print-on-temporary-variables-created-in-macros/m-p/107627#M29963</guid>
      <dc:creator>SeekYourWay</dc:creator>
      <dc:date>2012-05-10T18:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc print on temporary variables created in macros</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-print-on-temporary-variables-created-in-macros/m-p/107628#M29964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for the reply, however, I am creating a new post to describe my problem at bit more clearly. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 18:19:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-print-on-temporary-variables-created-in-macros/m-p/107628#M29964</guid>
      <dc:creator>SeekYourWay</dc:creator>
      <dc:date>2012-05-10T18:19:47Z</dc:date>
    </item>
  </channel>
</rss>

