<?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: Error in Macro parameter passing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-in-Macro-parameter-passing/m-p/553855#M154056</link>
    <description>&lt;P&gt;It's totally wierd , after restarting the EG , it works fine !!!!!!!!!!!!!!! Thnx&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2019 05:41:31 GMT</pubDate>
    <dc:creator>arunrami</dc:creator>
    <dc:date>2019-04-25T05:41:31Z</dc:date>
    <item>
      <title>Error in Macro parameter passing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-Macro-parameter-passing/m-p/553847#M154050</link>
      <description>&lt;P&gt;Dear SASian ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting below error note while executing my sample macro . It seems everything is ok with the code and syntax , no error on it.&lt;/P&gt;&lt;P&gt;Can any one help me out what's the issue here..??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release. Inserting white space &lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;between a quoted string and the succeeding identifier is recommended.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*sample*/
data A;
ename = 'Arun';
eage = '34';
run;

%macro Employee(name,age);
proc print data= A;
var &amp;amp;name &amp;amp;age;
run;
%mend Employee;

%Employee(ename,eage)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Apr 2019 05:00:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-Macro-parameter-passing/m-p/553847#M154050</guid>
      <dc:creator>arunrami</dc:creator>
      <dc:date>2019-04-25T05:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Macro parameter passing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-Macro-parameter-passing/m-p/553848#M154051</link>
      <description>&lt;P&gt;Please post the complete log in the windows opened by clicking on the {i}-button. Activate the options mprint and symbolgen before you re-run the code. I can't see any error, but it's still really early in the morning and i had no coffee.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 05:16:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-Macro-parameter-passing/m-p/553848#M154051</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-04-25T05:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Macro parameter passing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-Macro-parameter-passing/m-p/553849#M154052</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1                                                          The SAS System                        Wednesday 24 April 2019 10:49:00 AM

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Program';
4          %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5          %LET _CLIENTPROJECTPATH='';
6          %LET _CLIENTPROJECTPATHHOST='';
7          %LET _CLIENTPROJECTNAME='';
8          %LET _SASPROGRAMFILE='';
9          %LET _SASPROGRAMFILEHOST='';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=ACTIVEX;

           _________________________________
           49
NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release.  Inserting white space 
             between a quoted string and the succeeding identifier is recommended.

13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         FILENAME EGSR TEMP;
15         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
16             STYLE=HtmlBlue
17             STYLESHEET=(URL="file:///C:/ProgramData/App-V/3D1E589E-1601-4421-83FE-6B20398E0657/70D64657-CB4B-47F5-8882-A3E87EAB88
17       ! DD/Root/VFS/ProgramFilesX86/SASHome/x86/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css")
17             STYLESHEET=(URL="file:///C:/ProgramData/App-V/3D1E589E-1601-4421-83FE-6B20398E0657/70D64657-CB4B-47F5-8882-A3E87EAB88
17       ! DD/Root/VFS/ProgramFilesX86/SASHome/x86/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css"
                                                                                             _
                                                                                             49
17       ! )
NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release.  Inserting white space 
             between a quoted string and the succeeding identifier is recommended.

18             NOGTITLE
19             NOGFOOTNOTE
20             GPATH=&amp;amp;sasworklocation
21             ENCODING=UTF8
22             options(rolap="on")
23         ;
24         
25         GOPTIONS ACCESSIBLE;
26         data A;
27         ename = 'Arun';
28         eage = '34';
29         run;
30         
31         %macro Employee(name=,age=);
32         proc print data= A;
33         var &amp;amp;name &amp;amp;age;
34         run;
35         %mend Employee;
36         
37         %Employee(name=ename,age=eage);
38         
39         GOPTIONS NOACCESSIBLE;
40         %LET _CLIENTTASKLABEL=;
41         %LET _CLIENTPROCESSFLOWNAME=;
42         %LET _CLIENTPROJECTPATH=;
43         %LET _CLIENTPROJECTPATHHOST=;
2                                                          The SAS System                        Wednesday 24 April 2019 10:49:00 AM

44         %LET _CLIENTPROJECTNAME=;
45         %LET _SASPROGRAMFILE=;
46         %LET _SASPROGRAMFILEHOST=;
47         
48         ;*';*";*/;quit;run;
49         ODS _ALL_ CLOSE;
50         
51         
52         QUIT; RUN;
53         &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;note : working fine with sas studio, problem is with my sas eg !!!&lt;/P&gt;&lt;P&gt;hope you can solve it after your coffee &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&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>Thu, 25 Apr 2019 05:25:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-Macro-parameter-passing/m-p/553849#M154052</guid>
      <dc:creator>arunrami</dc:creator>
      <dc:date>2019-04-25T05:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Macro parameter passing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-Macro-parameter-passing/m-p/553851#M154053</link>
      <description>&lt;P&gt;You have something unbalanced (parentheses, quotes, unfinished statement) upstream in the code.&lt;/P&gt;
&lt;P&gt;Close your SAS session and run all your code piece by piece in a new one, until the effect starts. Then inspect the immediately preceding code for the mistake.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 05:36:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-Macro-parameter-passing/m-p/553851#M154053</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-04-25T05:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Macro parameter passing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-Macro-parameter-passing/m-p/553852#M154054</link>
      <description>&lt;P&gt;You code runs perfectly fine from EG, see this log:&lt;/P&gt;
&lt;PRE&gt;1                                                          Das SAS System                             07:33 Thursday, April 25, 2019

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Program';
4          %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5          %LET _CLIENTPROJECTPATH='';
6          %LET _CLIENTPROJECTPATHHOST='';
7          %LET _CLIENTPROJECTNAME='';
8          %LET _SASPROGRAMFILE='';
9          %LET _SASPROGRAMFILEHOST='';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=ACTIVEX;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         ODS LISTING GPATH=&amp;amp;sasworklocation;
15         FILENAME EGSR TEMP;
16         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
17             STYLE=Default
18             STYLESHEET=(URL="file:///C:/Program%20Files%20(x86)/SASHome/x86/SASEnterpriseGuide/7.1/Styles/Default.css")
19             NOGTITLE
20             NOGFOOTNOTE
21             GPATH=&amp;amp;sasworklocation
22             ENCODING=UTF8
23             options(rolap="on")
24         ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
25         
26         GOPTIONS ACCESSIBLE;
27         data A;
28         ename = 'Arun';
29         eage = '34';
30         run;

NOTE: The data set WORK.A has 1 observations and 2 variables.
NOTE: DATA statement used (Total process time):
      real time           0.02 seconds
      cpu time            0.00 seconds
      

31         
32         %macro Employee(name,age);
33         proc print data= A;
34         var &amp;amp;name &amp;amp;age;
35         run;
36         %mend Employee;
37         
38         %Employee(ename,eage)

NOTE: There were 1 observations read from the data set WORK.A.
NOTE: The PROCEDURE PRINT printed page 1.
NOTE: PROZEDUR PRINT used (Total process time):
      real time           0.05 seconds
      cpu time            0.01 seconds
      

39         
40         GOPTIONS NOACCESSIBLE;
41         %LET _CLIENTTASKLABEL=;
42         %LET _CLIENTPROCESSFLOWNAME=;
2                                                          Das SAS System                             07:33 Thursday, April 25, 2019

43         %LET _CLIENTPROJECTPATH=;
44         %LET _CLIENTPROJECTPATHHOST=;
45         %LET _CLIENTPROJECTNAME=;
46         %LET _SASPROGRAMFILE=;
47         %LET _SASPROGRAMFILEHOST=;
48         
49         ;*';*";*/;quit;run;
50         ODS _ALL_ CLOSE;
51         
52         
53         QUIT; RUN;
54         
&lt;/PRE&gt;
&lt;P&gt;So your problem comes from another piece of code. Inspect the code you executed before this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 05:35:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-Macro-parameter-passing/m-p/553852#M154054</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-04-25T05:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Macro parameter passing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-Macro-parameter-passing/m-p/553855#M154056</link>
      <description>&lt;P&gt;It's totally wierd , after restarting the EG , it works fine !!!!!!!!!!!!!!! Thnx&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 05:41:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-Macro-parameter-passing/m-p/553855#M154056</guid>
      <dc:creator>arunrami</dc:creator>
      <dc:date>2019-04-25T05:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Macro parameter passing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-Macro-parameter-passing/m-p/553856#M154057</link>
      <description>&lt;P&gt;you are right , previous piece of code had run; instead of quit; for proc sql. but it's strange why it affects this piece of code even though it ran independetly !!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 05:45:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-Macro-parameter-passing/m-p/553856#M154057</guid>
      <dc:creator>arunrami</dc:creator>
      <dc:date>2019-04-25T05:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Macro parameter passing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-Macro-parameter-passing/m-p/553858#M154058</link>
      <description>&lt;P&gt;If you can, you need to go back through the code(s) you sent before; the problem is somewhere in there.&lt;/P&gt;
&lt;P&gt;It can be that you marked part of the code and used "Run Selection", and missed to mark a closing bracket or similar. In conjunction with macro triggers this might cause the "magic cleanup":&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;;*';*";*/;quit;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to not do its job successfully.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 05:46:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-Macro-parameter-passing/m-p/553858#M154058</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-04-25T05:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Macro parameter passing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-Macro-parameter-passing/m-p/553903#M154070</link>
      <description>&lt;P&gt;great. thnx&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 09:26:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-Macro-parameter-passing/m-p/553903#M154070</guid>
      <dc:creator>arunrami</dc:creator>
      <dc:date>2019-04-25T09:26:31Z</dc:date>
    </item>
  </channel>
</rss>

