<?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: About SAS operating problem in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/About-SAS-operating-problem/m-p/678642#M23871</link>
    <description>&lt;P&gt;PLEASE Please please post log entries by copying the text from the log and pasting into a code window opened with the forum's &amp;lt;/&amp;gt; icon. This should even be easier than creating an image file and uploading that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can't copy and edit code from windows and it is MUCH easier to paste edited code to show where a correction may be needed that to attempt to edit a picture and post that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code is text. Please treat it as such.&lt;/P&gt;</description>
    <pubDate>Sat, 22 Aug 2020 05:11:01 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-08-22T05:11:01Z</dc:date>
    <item>
      <title>About SAS operating problem</title>
      <link>https://communities.sas.com/t5/New-SAS-User/About-SAS-operating-problem/m-p/678627#M23868</link>
      <description>&lt;P&gt;I am currently studying macro variables course. When I did the practice question with SAS Studio, whenever I submit a code with macro variable, it failed and generated the same code as following. Could you please help me to figure it out? I am super anxious about this trouble!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jianan_luna_0-1598064392159.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48554iD72854101FA9DD87/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jianan_luna_0-1598064392159.png" alt="Jianan_luna_0-1598064392159.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2020 02:46:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/About-SAS-operating-problem/m-p/678627#M23868</guid>
      <dc:creator>Jianan_luna</dc:creator>
      <dc:date>2020-08-22T02:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: About SAS operating problem</title>
      <link>https://communities.sas.com/t5/New-SAS-User/About-SAS-operating-problem/m-p/678634#M23869</link>
      <description>&lt;P&gt;Looks like you are missing a %MEND statement at the end of your macro.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2020 03:41:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/About-SAS-operating-problem/m-p/678634#M23869</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-08-22T03:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: About SAS operating problem</title>
      <link>https://communities.sas.com/t5/New-SAS-User/About-SAS-operating-problem/m-p/678642#M23871</link>
      <description>&lt;P&gt;PLEASE Please please post log entries by copying the text from the log and pasting into a code window opened with the forum's &amp;lt;/&amp;gt; icon. This should even be easier than creating an image file and uploading that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can't copy and edit code from windows and it is MUCH easier to paste edited code to show where a correction may be needed that to attempt to edit a picture and post that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code is text. Please treat it as such.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2020 05:11:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/About-SAS-operating-problem/m-p/678642#M23871</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-08-22T05:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: About SAS operating problem</title>
      <link>https://communities.sas.com/t5/New-SAS-User/About-SAS-operating-problem/m-p/678670#M23874</link>
      <description>&lt;P&gt;I am sorry about it. So this is the practice question I did: SAS Macro Language 1: Essentials--&amp;gt; 4.1 Defining and Calling a Macro--&amp;gt; Level 1, 2 practice question&lt;/P&gt;
&lt;P&gt;I did nothing change on original code, and when I submit it, it always failed to generate results. Here are the original code and log message.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let type=Gold;
title "&amp;amp;type Customers"; 
proc sql number;
select Name, Age_Group, Type 
    from mc1.customers 
    where Type contains "&amp;amp;type"; 
quit; 
title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         %let type=Gold;
 74         title "&amp;amp;type Customers";
 75         proc sql number;
 76         select Name, Age_Group, Type
 77             from mc1.customers
 78             where Type contains "&amp;amp;type";
 ERROR: Invalid characters were present in the data.
 ERROR: An error occurred while processing text data.
 NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
 79         quit;
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE SQL used (Total process time):
       real time           0.03 seconds
       cpu time            0.03 seconds
       
 80         title;
 81         
 82         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 94         &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I found the same problem for level 2 question, When I copy the answer code to my SAS Studio, it shows following message:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Solution:
%macro orderstats(var=Total_Retail_Price, class=Customer_ID,
				 stats=mean, decimals=2); 
options nolabel; 
title 'Order Stats'; 
proc means data=mc1.orders maxdec=&amp;amp;decimals &amp;amp;stats; 
    var &amp;amp;var;
    class &amp;amp;class; 
run; 
title;
options label;
%mend orderstats;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         %macro orderstats(var=Total_Retail_Price, class=Customer_ID,
 74          stats=mean, decimals=2);
 75         options nolabel;
 76         title 'Order Stats';
 77         proc means data=mc1.orders maxdec=&amp;amp;decimals &amp;amp;stats;
 78             var &amp;amp;var;
 79             class &amp;amp;class;
 80         run;
 81         title;
 82         options label;
 83         %mend orderstats;
 84         
 85         
 86         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks so much! I am so stressed about this problem. I cannot continue my learning process due to this problem. Thanks again.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2020 15:07:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/About-SAS-operating-problem/m-p/678670#M23874</guid>
      <dc:creator>Jianan_luna</dc:creator>
      <dc:date>2020-08-22T15:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: About SAS operating problem</title>
      <link>https://communities.sas.com/t5/New-SAS-User/About-SAS-operating-problem/m-p/678678#M23877</link>
      <description>&lt;P&gt;Not sure but it looks like perhaps some gibberish characters were introduced by the copy/paste action.&lt;/P&gt;
&lt;P&gt;I find it helps sometimes to first copy the text into a simple text editor (not a word processor) like NOTEPAD on Windows. And then re-copy it and paste it.&amp;nbsp; Or sometimes the gibberish will be more visible in the simple text editor and you can remove them.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2020 17:16:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/About-SAS-operating-problem/m-p/678678#M23877</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-08-22T17:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: About SAS operating problem</title>
      <link>https://communities.sas.com/t5/New-SAS-User/About-SAS-operating-problem/m-p/678680#M23878</link>
      <description>Hi:&lt;BR /&gt;  I see the %macro beginning of the macro program definition, but I do NOT see the %mend that ends the macro definition. Until you issue the %mend, you will not see anything in the SAS log. Perhaps you might want to go back and review the lesson on defining a macro program with %macro/%mend as the "container" for the macro program code and then how to invoke the macro program you have just defined.&lt;BR /&gt;Cynthia</description>
      <pubDate>Sat, 22 Aug 2020 17:47:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/About-SAS-operating-problem/m-p/678680#M23878</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-08-22T17:47:21Z</dc:date>
    </item>
  </channel>
</rss>

