<?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: SAS macro query in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-macro-query/m-p/917000#M41032</link>
    <description>&lt;PRE&gt;28         /*Create date macros*/
29         	%let REP_DATE_START  	= %sysfunc(intnx(month,"&amp;amp;REP_DATE_START_END."d,0,begin));
30         	%let PQ_REP_DATE_START 	= %sysfunc(intnx(month,"&amp;amp;REP_DATE_START_END."d,-3,begin));
WARNING: Apparent symbolic reference REP_DATE_START_END not resolved.&lt;/PRE&gt;
&lt;P&gt;You have not assigned a value to REP_DATE_START_END and so you cannot use it in INTNX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you mean to use another macro variable with a similar name that does have a value?&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 16:42:39 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2024-02-20T16:42:39Z</dc:date>
    <item>
      <title>SAS macro query</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-macro-query/m-p/916994#M41031</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am using an existing macro code from another program but I am getting error. I am not sure what is wrong with the&amp;nbsp; macro. Could you please look at the macro and suggest how to correct it?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Create date macros*/
	%let REP_DATE_START  	= %sysfunc(intnx(month,"&amp;amp;REP_DATE_START_END."d,0,begin));
	%let PQ_REP_DATE_START 	= %sysfunc(intnx(month,"&amp;amp;REP_DATE_START_END."d,-3,begin));
	%let yyyymm  			= %sysfunc(intnx(month,"&amp;amp;REP_DATE_START_END."d,0,begin),yymmn6.);
	%let yyyymm_Camel		= %sysfunc(intnx(month,"&amp;amp;REP_DATE_START_END."d,-1,begin),yymmn6.);

Error message:
1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Set up';
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=SVG;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         %macro HTML5AccessibleGraphSupported;
15             %if %_SAS_VERCOMP_FV(9,4,4, 0,0,0) &amp;gt;= 0 %then ACCESSIBLE_GRAPH;
16         %mend;
17         FILENAME EGHTML TEMP;
18         ODS HTML5(ID=EGHTML) FILE=EGHTML
19             OPTIONS(BITMAP_MODE='INLINE')
20             %HTML5AccessibleGraphSupported
21             ENCODING='utf-8'
22             STYLE=HTMLBlue
23             NOGTITLE
24             NOGFOOTNOTE
25             GPATH=&amp;amp;sasworklocation
26         ;
NOTE: Writing HTML5(EGHTML) Body file: EGHTML
WARNING: Apparent symbolic reference REP_DATE_START_END not resolved.
WARNING: Apparent symbolic reference REP_DATE_START_END not resolved.
ERROR: Argument 2 to function INTNX referenced by the %SYSFUNC or %QSYSFUNC macro function is not a number.
ERROR: Invalid arguments detected in %SYSCALL, %SYSFUNC, or %QSYSFUNC argument list.  Execution of %SYSCALL statement or %SYSFUNC 
       or %QSYSFUNC function reference is terminated.
27         
28         /*Create date macros*/
29         	%let REP_DATE_START  	= %sysfunc(intnx(month,"&amp;amp;REP_DATE_START_END."d,0,begin));
30         	%let PQ_REP_DATE_START 	= %sysfunc(intnx(month,"&amp;amp;REP_DATE_START_END."d,-3,begin));
WARNING: Apparent symbolic reference REP_DATE_START_END not resolved.
WARNING: Apparent symbolic reference REP_DATE_START_END not resolved.
ERROR: Argument 2 to function INTNX referenced by the %SYSFUNC or %QSYSFUNC macro function is not a number.
ERROR: Invalid arguments detected in %SYSCALL, %SYSFUNC, or %QSYSFUNC argument list.  Execution of %SYSCALL statement or %SYSFUNC 
       or %QSYSFUNC function reference is terminated.
31         	%let yyyymm  			= %sysfunc(intnx(month,"&amp;amp;REP_DATE_START_END."d,0,begin),yymmn6.);
WARNING: Apparent symbolic reference REP_DATE_START_END not resolved.
WARNING: Apparent symbolic reference REP_DATE_START_END not resolved.
ERROR: Argument 2 to function INTNX referenced by the %SYSFUNC or %QSYSFUNC macro function is not a number.
ERROR: Invalid arguments detected in %SYSCALL, %SYSFUNC, or %QSYSFUNC argument list.  Execution of %SYSCALL statement or %SYSFUNC 
       or %QSYSFUNC function reference is terminated.
32         	%let yyyymm_Camel		= %sysfunc(intnx(month,"&amp;amp;REP_DATE_START_END."d,-1,begin),yymmn6.);
WARNING: Apparent symbolic reference REP_DATE_START_END not resolved.
WARNING: Apparent symbolic reference REP_DATE_START_END not resolved.
ERROR: Argument 2 to function INTNX referenced by the %SYSFUNC or %QSYSFUNC macro function is not a number.
ERROR: Invalid arguments detected in %SYSCALL, %SYSFUNC, or %QSYSFUNC argument list.  Execution of %SYSCALL statement or %SYSFUNC 
       or %QSYSFUNC function reference is terminated.
33         
34         %LET _CLIENTTASKLABEL=;
35         %LET _CLIENTPROCESSFLOWNAME=;
36         %LET _CLIENTPROJECTPATH=;
37         %LET _CLIENTPROJECTPATHHOST=;
2                                                          The SAS System                           15:08 Tuesday, February 20, 2024

38         %LET _CLIENTPROJECTNAME=;
39         %LET _SASPROGRAMFILE=;
40         %LET _SASPROGRAMFILEHOST=;
41         
42         ;*';*";*/;quit;run;
43         ODS _ALL_ CLOSE;
44         
45         
46         QUIT; RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Feb 2024 15:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-macro-query/m-p/916994#M41031</guid>
      <dc:creator>Sandeep77</dc:creator>
      <dc:date>2024-02-20T15:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro query</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-macro-query/m-p/917000#M41032</link>
      <description>&lt;PRE&gt;28         /*Create date macros*/
29         	%let REP_DATE_START  	= %sysfunc(intnx(month,"&amp;amp;REP_DATE_START_END."d,0,begin));
30         	%let PQ_REP_DATE_START 	= %sysfunc(intnx(month,"&amp;amp;REP_DATE_START_END."d,-3,begin));
WARNING: Apparent symbolic reference REP_DATE_START_END not resolved.&lt;/PRE&gt;
&lt;P&gt;You have not assigned a value to REP_DATE_START_END and so you cannot use it in INTNX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you mean to use another macro variable with a similar name that does have a value?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 16:42:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-macro-query/m-p/917000#M41032</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-02-20T16:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro query</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-macro-query/m-p/917001#M41033</link>
      <description>&lt;P&gt;Starting at the top,&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;WARNING: Apparent symbolic reference REP_DATE_START_END not resolved.
WARNING: Apparent symbolic reference REP_DATE_START_END not resolved.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No where in the code is that macro variable defined, so it comes from another part of the process. Back up and check that process and ensure the macro variable is created correctly.&amp;nbsp;&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/391779"&gt;@Sandeep77&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am using an existing macro code from another program but I am getting error. I am not sure what is wrong with the&amp;nbsp; macro. Could you please look at the macro and suggest how to correct it?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Create date macros*/
	%let REP_DATE_START  	= %sysfunc(intnx(month,"&amp;amp;REP_DATE_START_END."d,0,begin));
	%let PQ_REP_DATE_START 	= %sysfunc(intnx(month,"&amp;amp;REP_DATE_START_END."d,-3,begin));
	%let yyyymm  			= %sysfunc(intnx(month,"&amp;amp;REP_DATE_START_END."d,0,begin),yymmn6.);
	%let yyyymm_Camel		= %sysfunc(intnx(month,"&amp;amp;REP_DATE_START_END."d,-1,begin),yymmn6.);

Error message:
1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Set up';
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=SVG;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         %macro HTML5AccessibleGraphSupported;
15             %if %_SAS_VERCOMP_FV(9,4,4, 0,0,0) &amp;gt;= 0 %then ACCESSIBLE_GRAPH;
16         %mend;
17         FILENAME EGHTML TEMP;
18         ODS HTML5(ID=EGHTML) FILE=EGHTML
19             OPTIONS(BITMAP_MODE='INLINE')
20             %HTML5AccessibleGraphSupported
21             ENCODING='utf-8'
22             STYLE=HTMLBlue
23             NOGTITLE
24             NOGFOOTNOTE
25             GPATH=&amp;amp;sasworklocation
26         ;
NOTE: Writing HTML5(EGHTML) Body file: EGHTML
WARNING: Apparent symbolic reference REP_DATE_START_END not resolved.
WARNING: Apparent symbolic reference REP_DATE_START_END not resolved.
ERROR: Argument 2 to function INTNX referenced by the %SYSFUNC or %QSYSFUNC macro function is not a number.
ERROR: Invalid arguments detected in %SYSCALL, %SYSFUNC, or %QSYSFUNC argument list.  Execution of %SYSCALL statement or %SYSFUNC 
       or %QSYSFUNC function reference is terminated.
27         
28         /*Create date macros*/
29         	%let REP_DATE_START  	= %sysfunc(intnx(month,"&amp;amp;REP_DATE_START_END."d,0,begin));
30         	%let PQ_REP_DATE_START 	= %sysfunc(intnx(month,"&amp;amp;REP_DATE_START_END."d,-3,begin));
WARNING: Apparent symbolic reference REP_DATE_START_END not resolved.
WARNING: Apparent symbolic reference REP_DATE_START_END not resolved.
ERROR: Argument 2 to function INTNX referenced by the %SYSFUNC or %QSYSFUNC macro function is not a number.
ERROR: Invalid arguments detected in %SYSCALL, %SYSFUNC, or %QSYSFUNC argument list.  Execution of %SYSCALL statement or %SYSFUNC 
       or %QSYSFUNC function reference is terminated.
31         	%let yyyymm  			= %sysfunc(intnx(month,"&amp;amp;REP_DATE_START_END."d,0,begin),yymmn6.);
WARNING: Apparent symbolic reference REP_DATE_START_END not resolved.
WARNING: Apparent symbolic reference REP_DATE_START_END not resolved.
ERROR: Argument 2 to function INTNX referenced by the %SYSFUNC or %QSYSFUNC macro function is not a number.
ERROR: Invalid arguments detected in %SYSCALL, %SYSFUNC, or %QSYSFUNC argument list.  Execution of %SYSCALL statement or %SYSFUNC 
       or %QSYSFUNC function reference is terminated.
32         	%let yyyymm_Camel		= %sysfunc(intnx(month,"&amp;amp;REP_DATE_START_END."d,-1,begin),yymmn6.);
WARNING: Apparent symbolic reference REP_DATE_START_END not resolved.
WARNING: Apparent symbolic reference REP_DATE_START_END not resolved.
ERROR: Argument 2 to function INTNX referenced by the %SYSFUNC or %QSYSFUNC macro function is not a number.
ERROR: Invalid arguments detected in %SYSCALL, %SYSFUNC, or %QSYSFUNC argument list.  Execution of %SYSCALL statement or %SYSFUNC 
       or %QSYSFUNC function reference is terminated.
33         
34         %LET _CLIENTTASKLABEL=;
35         %LET _CLIENTPROCESSFLOWNAME=;
36         %LET _CLIENTPROJECTPATH=;
37         %LET _CLIENTPROJECTPATHHOST=;
2                                                          The SAS System                           15:08 Tuesday, February 20, 2024

38         %LET _CLIENTPROJECTNAME=;
39         %LET _SASPROGRAMFILE=;
40         %LET _SASPROGRAMFILEHOST=;
41         
42         ;*';*";*/;quit;run;
43         ODS _ALL_ CLOSE;
44         
45         
46         QUIT; RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 16:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-macro-query/m-p/917001#M41033</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2024-02-20T16:43:29Z</dc:date>
    </item>
  </channel>
</rss>

