<?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 SAS Macro list question in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-list-question/m-p/678570#M23880</link>
    <description>&lt;P&gt;I follow these codes from&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;https://www.youtube.com/watch?v=fFfxPqNzNJc&lt;/PRE&gt;
&lt;P&gt;But I am not sure why it does not run in SAS University Edition.&lt;/P&gt;
&lt;P&gt;Appreciates your comments. Phan S.&lt;/P&gt;
&lt;PRE&gt;data _null_;&lt;BR /&gt; set sashelp.cars;&lt;BR /&gt; where strip(make)='Acura' and strip(model)='MDX';&lt;BR /&gt; call symputx('MDX_Price',msrp);&lt;BR /&gt; /*%let MDX_Price = msrp;*/&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;option nosource;&lt;BR /&gt;%put ==================================;&lt;BR /&gt;%put the MSRP for an Acura MDX is &amp;amp;MDX_Price..;&lt;BR /&gt;%put ==================================;&lt;BR /&gt;option source;&lt;BR /&gt;&lt;BR /&gt;proc sql noprint;&lt;BR /&gt; select age&lt;BR /&gt; into: alfred_age&lt;BR /&gt; from sashelp.class&lt;BR /&gt; where name='Alfred';&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;proc sql noprint;&lt;BR /&gt; select weight into: MDX_Weight trimmed&lt;BR /&gt; from sashelp.cars&lt;BR /&gt; where strip(make)='Acura' and strip(model)='MDX';&lt;BR /&gt; quit;&lt;BR /&gt; &lt;BR /&gt;option nosource;&lt;BR /&gt;%put ==================================;&lt;BR /&gt;%put the MSRP for an Acura MDX is &amp;amp;MDX_Weight..;&lt;BR /&gt;%put ==================================;&lt;BR /&gt;option source;&lt;/PRE&gt;</description>
    <pubDate>Sat, 22 Aug 2020 18:09:53 GMT</pubDate>
    <dc:creator>PhanS</dc:creator>
    <dc:date>2020-08-22T18:09:53Z</dc:date>
    <item>
      <title>SAS Macro list question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-list-question/m-p/678570#M23880</link>
      <description>&lt;P&gt;I follow these codes from&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;https://www.youtube.com/watch?v=fFfxPqNzNJc&lt;/PRE&gt;
&lt;P&gt;But I am not sure why it does not run in SAS University Edition.&lt;/P&gt;
&lt;P&gt;Appreciates your comments. Phan S.&lt;/P&gt;
&lt;PRE&gt;data _null_;&lt;BR /&gt; set sashelp.cars;&lt;BR /&gt; where strip(make)='Acura' and strip(model)='MDX';&lt;BR /&gt; call symputx('MDX_Price',msrp);&lt;BR /&gt; /*%let MDX_Price = msrp;*/&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;option nosource;&lt;BR /&gt;%put ==================================;&lt;BR /&gt;%put the MSRP for an Acura MDX is &amp;amp;MDX_Price..;&lt;BR /&gt;%put ==================================;&lt;BR /&gt;option source;&lt;BR /&gt;&lt;BR /&gt;proc sql noprint;&lt;BR /&gt; select age&lt;BR /&gt; into: alfred_age&lt;BR /&gt; from sashelp.class&lt;BR /&gt; where name='Alfred';&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;proc sql noprint;&lt;BR /&gt; select weight into: MDX_Weight trimmed&lt;BR /&gt; from sashelp.cars&lt;BR /&gt; where strip(make)='Acura' and strip(model)='MDX';&lt;BR /&gt; quit;&lt;BR /&gt; &lt;BR /&gt;option nosource;&lt;BR /&gt;%put ==================================;&lt;BR /&gt;%put the MSRP for an Acura MDX is &amp;amp;MDX_Weight..;&lt;BR /&gt;%put ==================================;&lt;BR /&gt;option source;&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Aug 2020 18:09:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-list-question/m-p/678570#M23880</guid>
      <dc:creator>PhanS</dc:creator>
      <dc:date>2020-08-22T18:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-list-question/m-p/678575#M23881</link>
      <description>&lt;P&gt;For posts related to "why this didn't run" you should supply the LOG of your attempt to run the code along with any errors or warnings. Copy the text from the LOG and paste into a code box opened on the forum with the &amp;lt;/&amp;gt; icon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pasting into the code box is important because SAS often supplies diagnostic characters that the main message window will reformat so they appear in a position other that SAS wrote them originally.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since %put only writes to the log then you would not see anything appear in other result windows if that is what you expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can run the code and get reasonable results from the %put statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 20:15:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-list-question/m-p/678575#M23881</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-08-21T20:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-list-question/m-p/678585#M23882</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;ballardw (Super User),&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I closed and reopened SAS and it appears to run (See attached).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Phan S.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditorPhanS_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tinyMceEditorPhanS_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 20:34:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-list-question/m-p/678585#M23882</guid>
      <dc:creator>PhanS</dc:creator>
      <dc:date>2020-08-21T20:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-list-question/m-p/678590#M23883</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31493"&gt;@PhanS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;ballardw (Super User),&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I closed and reopened SAS and it appears to run (See attached).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Phan S.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditorPhanS_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tinyMceEditorPhanS_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Working with macro code requires significant attention to detail. You can create instances where "something" , varies on what you attempt, isn't closed properly and so code generated or variables are not actually seen by the SAS code compiler as you think.&lt;/P&gt;
&lt;P&gt;One symptom is submitting code and nothing happening. At which point often the solution is to save your code and restart SAS. Then very carefully want the macro bits next time as you may have saved an error that will cause this all over again.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 21:02:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-list-question/m-p/678590#M23883</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-08-21T21:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-list-question/m-p/678594#M23884</link>
      <description>Thank you for your input.&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Aug 2020 21:29:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-list-question/m-p/678594#M23884</guid>
      <dc:creator>PhanS</dc:creator>
      <dc:date>2020-08-21T21:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro list question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-list-question/m-p/678697#M23886</link>
      <description>Hi: Perhaps this is a question for the person who wrote the code. However, since you did NOT post any error messages, no one can guess what error messages you might have received in the SAS log. &lt;BR /&gt;&lt;BR /&gt;  It does seem odd that you have code for both SASHELP.CARS and SASHELP.CLASS in the same program. The video you referenced  is over an hour long. Did the presenter submit all the code at once at the end of the hour?  Are you following the same steps the presenter followed? Did the presenter get error messages in his log? Where did your experience with the code differ from what the presenter showed? &lt;BR /&gt;&lt;BR /&gt;  It's nearly impossible to provide any constructive suggestions without understanding exactly how "it does not run in University Edition" -- only you know that -- and of course, the SAS log that shows how it did not run.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Sat, 22 Aug 2020 20:56:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-list-question/m-p/678697#M23886</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-08-22T20:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro list question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-list-question/m-p/679181#M23928</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Very sorry for my late reply. I just saw your post.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My SAS University was freeze.&lt;/P&gt;
&lt;P&gt;It has resolved the issue after I saved my codes, closed SAS, and resubmitted the same codes.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next time, I will remember to present Log messages.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 15:19:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-list-question/m-p/679181#M23928</guid>
      <dc:creator>PhanS</dc:creator>
      <dc:date>2020-08-25T15:19:06Z</dc:date>
    </item>
  </channel>
</rss>

