<?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 MACRO in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757584#M30140</link>
    <description>Hello everyone,&lt;BR /&gt;I was blé to get the frequency on 2 variables age and score and plot an histograms for both using the following formulas&lt;BR /&gt;Proc freq&lt;BR /&gt;Data=Risk3;&lt;BR /&gt;Tables age;&lt;BR /&gt;Where status=‘full time’&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;Proc sgplot data= Risk3;&lt;BR /&gt;Histogram age/ scale=count;&lt;BR /&gt;Where status =‘full time’ and decision in ( pass, overide, overiden);&lt;BR /&gt;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;I wrote the same steps and formula with score ( by replacing age by score).&lt;BR /&gt;&lt;BR /&gt;Now I am looking to create a macro using the same formulas as a base to plot the frequencies and SAS charts but on 3 others more variables time, arrears and income. Anyone knows how to proceed?&lt;BR /&gt;&lt;BR /&gt;Thank you indeed</description>
    <pubDate>Wed, 28 Jul 2021 04:44:59 GMT</pubDate>
    <dc:creator>nhev</dc:creator>
    <dc:date>2021-07-28T04:44:59Z</dc:date>
    <item>
      <title>Macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757580#M30137</link>
      <description>Hello everyone,&lt;BR /&gt;I was blé to get the frequency on 2 variables age and score and plot an histograms for both using the following formulas&lt;BR /&gt;Proc freq&lt;BR /&gt;Data=Risk3;&lt;BR /&gt;Tables age;&lt;BR /&gt;Where status=‘full time’&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;Proc sgplot data= Risk3;&lt;BR /&gt;Histogram age/ scale=count;&lt;BR /&gt;Where status =‘full time’ and decision in ( pass, overide, overiden);&lt;BR /&gt;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;I wrote the same steps and formula with score ( by replacing age by score).&lt;BR /&gt;&lt;BR /&gt;Now I am looking to create a macro using the same formulas as a base to plot the frequencies and SAS charts but on 3 others more variables time, arrears and income. Anyone knows how to proceed?&lt;BR /&gt;&lt;BR /&gt;Thank you indeed</description>
      <pubDate>Wed, 28 Jul 2021 04:20:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757580#M30137</guid>
      <dc:creator>nhev</dc:creator>
      <dc:date>2021-07-28T04:20:03Z</dc:date>
    </item>
    <item>
      <title>MACRO</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757584#M30140</link>
      <description>Hello everyone,&lt;BR /&gt;I was blé to get the frequency on 2 variables age and score and plot an histograms for both using the following formulas&lt;BR /&gt;Proc freq&lt;BR /&gt;Data=Risk3;&lt;BR /&gt;Tables age;&lt;BR /&gt;Where status=‘full time’&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;Proc sgplot data= Risk3;&lt;BR /&gt;Histogram age/ scale=count;&lt;BR /&gt;Where status =‘full time’ and decision in ( pass, overide, overiden);&lt;BR /&gt;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;I wrote the same steps and formula with score ( by replacing age by score).&lt;BR /&gt;&lt;BR /&gt;Now I am looking to create a macro using the same formulas as a base to plot the frequencies and SAS charts but on 3 others more variables time, arrears and income. Anyone knows how to proceed?&lt;BR /&gt;&lt;BR /&gt;Thank you indeed</description>
      <pubDate>Wed, 28 Jul 2021 04:44:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757584#M30140</guid>
      <dc:creator>nhev</dc:creator>
      <dc:date>2021-07-28T04:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757590#M30139</link>
      <description>&lt;P&gt;The where-statement in proc sgplot seems to create errors, due to missing quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 1: Wrap the code in %macro and %mend, spend some time on choosing a proper name for the macro. Execute it. If the result is still what it was before, go ahead to Step 2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 2: Identify the things that need to be replaced, add parameters for them and use &amp;amp;your_param. in the appropriate places. Re-run the macro, providing the original value, check the log.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 05:13:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757590#M30139</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-07-28T05:13:36Z</dc:date>
    </item>
    <item>
      <title>Macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757618#M30142</link>
      <description>Hello everyone,&lt;BR /&gt;I was blé to get the frequency on 2 variables age and score and plot an histograms for both using the following formulas&lt;BR /&gt;Proc freq&lt;BR /&gt;Data=Risk3;&lt;BR /&gt;Tables age;&lt;BR /&gt;Where status=‘full time’&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;Proc sgplot data= Risk3;&lt;BR /&gt;Histogram age/ scale=count;&lt;BR /&gt;Where status =‘full time’ and decision in ( pass, overide, overiden);&lt;BR /&gt;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;I wrote the same steps and formula with score ( by replacing age by score).&lt;BR /&gt;&lt;BR /&gt;Now I am looking to create a macro using the same formulas as a base to plot the frequencies and SAS charts but on 3 others more variables time, arrears and income. Anyone knows how to proceed?&lt;BR /&gt;&lt;BR /&gt;Thank you indeed&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jul 2021 09:13:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757618#M30142</guid>
      <dc:creator>nhev</dc:creator>
      <dc:date>2021-07-28T09:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757619#M30143</link>
      <description>&lt;P&gt;&lt;STRONG&gt;PLEASE DO NOT MULTI-POST!!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;It serves no purpose, and makes keeping track of suggested solutions hard for everybody.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 09:17:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757619#M30143</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-07-28T09:17:58Z</dc:date>
    </item>
    <item>
      <title>Help with Macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757620#M30144</link>
      <description>Hello everyone,&lt;BR /&gt;I was blé to get the frequency on 2 variables age and score and plot an histograms for both using the following formulas&lt;BR /&gt;Proc freq&lt;BR /&gt;Data=Risk3;&lt;BR /&gt;Tables age;&lt;BR /&gt;Where status=‘full time’&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;Proc sgplot data= Risk3;&lt;BR /&gt;Histogram age/ scale=count;&lt;BR /&gt;Where status =‘full time’ and decision in ( pass, overide, overiden);&lt;BR /&gt;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;I wrote the same steps and formula with score ( by replacing age by score).&lt;BR /&gt;&lt;BR /&gt;Now I am looking to create a macro using the same formulas as a base to plot the frequencies and SAS charts but on 3 others more variables time, arrears and income. Anyone knows how to proceed?&lt;BR /&gt;&lt;BR /&gt;Thank you indeed&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jul 2021 09:19:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757620#M30144</guid>
      <dc:creator>nhev</dc:creator>
      <dc:date>2021-07-28T09:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757625#M30145</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="7"&gt;Please stop re-posting the same question over and over again!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 09:39:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757625#M30145</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-07-28T09:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757626#M30146</link>
      <description>You don’t have to tell me what to do.&lt;BR /&gt;I couldn’t have a response to my question so I simply repost it. I don’t see where is the issue</description>
      <pubDate>Wed, 28 Jul 2021 09:42:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757626#M30146</guid>
      <dc:creator>nhev</dc:creator>
      <dc:date>2021-07-28T09:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757629#M30147</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/388722"&gt;@nhev&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;You don’t have to tell me what to do.&lt;BR /&gt;I couldn’t have a response to my question so I simply repost it. I don’t see where is the issue&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I gave you an answer, if you don't understand it, ask. Also note, that re-posting the same question is just annoying and will hardly help getting a full solution to your problem.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 09:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757629#M30147</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-07-28T09:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757633#M30148</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/388722"&gt;@nhev&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;You don’t have to tell me what to do.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;(Super-User speaking) Oh yes, we have, if you don't behave responsibly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/388722"&gt;@nhev&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I couldn’t have a response to my question so I simply repost it. I don’t see where is the issue&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Lie. You got an answer; instead of replying to it, you reposted the identical question again and again, forcing us to merge it back into the original thread.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 10:02:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757633#M30148</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-07-28T10:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757634#M30149</link>
      <description>UNBELIEVABLE. You think you have the right to call me a liar because I asked a question? Do you think you own the chat?</description>
      <pubDate>Wed, 28 Jul 2021 10:15:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757634#M30149</guid>
      <dc:creator>nhev</dc:creator>
      <dc:date>2021-07-28T10:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757635#M30150</link>
      <description>That’s correct I didn’t understand it so I simply repost. Someone else could help me to see things in a different view so for me I still haven’t got a reply</description>
      <pubDate>Wed, 28 Jul 2021 10:17:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757635#M30150</guid>
      <dc:creator>nhev</dc:creator>
      <dc:date>2021-07-28T10:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757636#M30151</link>
      <description>&lt;P&gt;You got an answer to a question; the reason that the answer is not understandable for you might be how you initially stated your question, so re-posting the &lt;U&gt;identical&lt;/U&gt; question won't help.&lt;/P&gt;
&lt;P&gt;Instead please reply to the answer and say what in particular you do not understand, so we can elaborate.&lt;/P&gt;
&lt;P&gt;Mind that we have no clue about your current expertise, so an answer might assume a level of SAS knowledge that you do not yet have.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 10:34:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757636#M30151</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-07-28T10:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757638#M30152</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/388722"&gt;@nhev&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;UNBELIEVABLE. You think you have the right to call me a liar because I asked a question? Do you think you own the chat?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I concede that you might simply have overlooked the answer that was already given. But still your statement that you did &lt;U&gt;not&lt;/U&gt; get an answer was not what people usually call "the truth".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's end this and get back to the issue at hand: how do we need to elaborate on the answer already given to get closer to solving your issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 10:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757638#M30152</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-07-28T10:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757665#M30154</link>
      <description>&lt;P&gt;Your original post started out as a lie:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I was able to get the frequency on 2 variables age and score and plot an histograms for both using the following formulas.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Both of the steps you posted contain an error.&amp;nbsp; Neither will work.&amp;nbsp; Maybe you got something to work, but it's not the code that you posted.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What does this say about you?&amp;nbsp; I don't know.&amp;nbsp; But I know it plays a role in why you got very little response to your question.&amp;nbsp; For a macro to work, the code within it has to work.&amp;nbsp; Once you wrap the code inside a macro, it becomes much more difficult to debug.&amp;nbsp; So I wouldn't waste my time putting a macro around it when I know the macro has to fail.&amp;nbsp; Rightly or wrongly, I am imagining that I would have to solve 3 or 4 questions instead of 1 ... how to write a macro, how to correct errors that result, and likely how to add functionality that is not included in your simplified program.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you get your part right, there are dozens of posters who could easily answer your question.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 12:24:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macro/m-p/757665#M30154</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-07-28T12:24:24Z</dc:date>
    </item>
  </channel>
</rss>

