<?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: passing of parameters an alphanumeric value with a dot in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966569#M376170</link>
    <description>&lt;P&gt;Thanks, you provided the macro in the code box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However it would really help if you read and followed the rest of the instructions. We don't need the 50 or so lines of the log before&amp;nbsp;&lt;SPAN&gt;%create_ipay_pct9 is called. We're trying to help you, but you have to help us.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;MPRINT(CREATE_IPAY_PCT9):   data ipay_pct9_2202504 (keep=pstn area nmbr vl);
MPRINT(CREATE_IPAY_PCT9):   set ipay_pct9202504;
MPRINT(CREATE_IPAY_PCT9):   if country not in (' ') or wert not= . then do;
MPRINT(CREATE_IPAY_PCT9):   pstn = "(PCT2)";
MPRINT(CREATE_IPAY_PCT9):   end;
MPRINT(CREATE_IPAY_PCT9):   run;

&lt;FONT color="#FF0000"&gt;NOTE: Variable country is uninitialized.
NOTE: Variable wert is uninitialized.&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The macro fails because in the &amp;amp;input data set, there is no variable named COUNTRY and no variable named WERT, so SAS doesn't know what to do. In essence, this isn't a macro error, it is a BASE SAS error, you can't use variable names that don't exist in the data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which brings up a discussion of "best practice" when writing macros. First you need to create code that works without macros and without macro variables, for one possible set of values if input, output and pstn_value. It appears you have not done that. Had you done that, you could fix that code and get it to work before writing the macro, based on working code. You need to do that and show us the working code without macros and without macro variables.&lt;/P&gt;</description>
    <pubDate>Thu, 15 May 2025 11:50:08 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2025-05-15T11:50:08Z</dc:date>
    <item>
      <title>passing of parameters an alphanumeric value with a dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966543#M376152</link>
      <description>&lt;P&gt;&lt;SPAN&gt;How can I pass an alphanumeric value with a dot (e.g., PST.2) to a macro? Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 07:27:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966543#M376152</guid>
      <dc:creator>Hoibai</dc:creator>
      <dc:date>2025-05-15T07:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: passing of parameters an alphanumeric value with a dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966544#M376153</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please share the code you have tried using the "Insert SAS Code" icon, and also share the log using the "Insert Code" icon ("&amp;lt;/&amp;gt;").&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the following which appeared to work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; 71         %macro test(arg);
 72           %put The argument was &amp;amp;arg;
 73         %mend test;
 74         
 75         %test(PST.2);
 The argument was PST.2
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 08:41:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966544#M376153</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2025-05-15T08:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: passing of parameters an alphanumeric value with a dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966553#M376157</link>
      <description>&lt;P&gt;It did'n work.&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;My macro:&lt;/U&gt;&lt;BR /&gt;%macro create_ipay_pct9(input, output, pstn_value);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data &amp;amp;output (keep=pstn area nmbr vl);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set &amp;amp;input;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if country not in (' ') or vl not= . then do;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %if %length(&amp;amp;pstn_value) &amp;gt; 0 %then %do;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pstn = &amp;amp;pstn_value;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%end;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end; &lt;BR /&gt;&amp;nbsp; &amp;nbsp;run;&lt;BR /&gt;%mend create_ipay_pct9;&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;My call:&lt;/U&gt;&lt;BR /&gt;%create_ipay_pct9(ipay_pct9&amp;amp;year.&amp;amp;month, ipay_pct9_2&amp;amp;year.&amp;amp;month, (PCT.2);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 10:48:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966553#M376157</guid>
      <dc:creator>Hoibai</dc:creator>
      <dc:date>2025-05-15T10:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: passing of parameters an alphanumeric value with a dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966554#M376158</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post the full log using the Insert Code icon "&amp;lt;/&amp;gt;".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also your invocation looks like it has an extra "&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/FONT&gt;":&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%create_ipay_pct9(ipay_pct9&amp;amp;year.&amp;amp;month, ipay_pct9_2&amp;amp;year.&amp;amp;month, &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;(&lt;/FONT&gt;&lt;/STRONG&gt;PCT.2);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 10:55:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966554#M376158</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2025-05-15T10:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: passing of parameters an alphanumeric value with a dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966555#M376159</link>
      <description>&lt;P&gt;&amp;lt; I get the ERROR:&lt;/P&gt;
&lt;P&gt;ERROR 386-185: Expecting an arithmetic expression.&lt;/P&gt;
&lt;P&gt;ERROR 201-322: The option is not recognized and will be ignored.&lt;BR /&gt;call the macro:&lt;BR /&gt;%create_ipay_pct9(ipay_pct9&amp;amp;year.&amp;amp;month, ipay_pct9_2&amp;amp;year.&amp;amp;month, (PCT.2));&lt;BR /&gt;/&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 11:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966555#M376159</guid>
      <dc:creator>Hoibai</dc:creator>
      <dc:date>2025-05-15T11:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: passing of parameters an alphanumeric value with a dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966557#M376160</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting the log. When posting, there are icons above the text box, you can select the icon as below when posting the log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Amir_0-1747307584631.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106937iA0200C58905ACF5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Amir_0-1747307584631.png" alt="Amir_0-1747307584631.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't need the parenthesis around the value when calling the macro. Change the line of code from:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;pstn = &amp;amp;pstn_value;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;so that it has double quotes around the argument as it contains an alphanumeric value:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;pstn = "&amp;amp;pstn_value";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 11:15:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966557#M376160</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2025-05-15T11:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: passing of parameters an alphanumeric value with a dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966558#M376161</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/463573"&gt;@Hoibai&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;lt; I get the ERROR:&lt;/P&gt;
&lt;P&gt;ERROR 386-185: Expecting an arithmetic expression.&lt;/P&gt;
&lt;P&gt;ERROR 201-322: The option is not recognized and will be ignored.&lt;BR /&gt;call the macro:&lt;BR /&gt;%create_ipay_pct9(ipay_pct9&amp;amp;year.&amp;amp;month, ipay_pct9_2&amp;amp;year.&amp;amp;month, (PCT.2));&lt;BR /&gt;/&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Showing us partial logs like this doesn't help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since it is a macro, first turn on macro debugging option by running this command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then run your macro again and show us the &lt;FONT color="#FF0000"&gt;entire log for this macro&lt;/FONT&gt;. Post the log by copying it as text and pasting it into the window that appears when you click on the &amp;lt;/&amp;gt; icon.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaigeMiller_0-1715196634946.png" style="width: 859px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96351i414DE7EE2D1B5DE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="PaigeMiller_0-1715196634946.png" alt="PaigeMiller_0-1715196634946.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 11:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966558#M376161</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-05-15T11:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: passing of parameters an alphanumeric value with a dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966560#M376162</link>
      <description>&lt;P&gt;no, it didn't work&lt;BR /&gt;&amp;lt;/&lt;BR /&gt;%macro create_ipay_pct9(input, output, pstn_value);&lt;BR /&gt;data &amp;amp;output (keep=pstn area nmbr vl);&lt;BR /&gt;set &amp;amp;input;&lt;BR /&gt;if country not in (' ') or wert not= . then do;&lt;BR /&gt;%if %length(&amp;amp;pstn_value) &amp;gt; 0 %then %do;&lt;BR /&gt;pstn = "&amp;amp;pstn_value";&lt;BR /&gt;%end;&lt;BR /&gt;end; &lt;BR /&gt;run;&lt;BR /&gt;%mend create_ipay_pct9;&lt;BR /&gt;&lt;BR /&gt;%create_ipay_pct9(ipay_pct9&amp;amp;year.&amp;amp;month, ipay_pct9_2&amp;amp;year.&amp;amp;month, (PCT2));&lt;BR /&gt;/&amp;gt;&lt;BR /&gt;&lt;BR /&gt;my result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hoibai_0-1747307909057.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106938iD24A7A2BEDF76301/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hoibai_0-1747307909057.png" alt="Hoibai_0-1747307909057.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 11:18:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966560#M376162</guid>
      <dc:creator>Hoibai</dc:creator>
      <dc:date>2025-05-15T11:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: passing of parameters an alphanumeric value with a dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966561#M376163</link>
      <description>&lt;P&gt;The Log:&lt;/P&gt;
&lt;P&gt;&amp;lt;/&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;1 ;*';*";*/;quit;run;&lt;BR /&gt;2 OPTIONS PAGENO=MIN;&lt;BR /&gt;3 %LET _CLIENTTASKLABEL='Programm 1';&lt;BR /&gt;4 %LET _CLIENTPROCESSFLOWNAME='Prozessfluss';&lt;BR /&gt;5 %LET _CLIENTPROJECTPATH='H:\My Documents\#Programm_Tabellen\A-SAS-Programme\XML_Ausgabe_Quartal_Final_20250312 .egp';&lt;BR /&gt;6 %LET _CLIENTPROJECTPATHHOST='AP923110';&lt;BR /&gt;7 %LET _CLIENTPROJECTNAME='XML_Ausgabe_Quartal_Final_20250312 .egp';&lt;BR /&gt;8 %LET _SASPROGRAMFILE='';&lt;BR /&gt;9 %LET _SASPROGRAMFILEHOST='';&lt;BR /&gt;10 &lt;BR /&gt;11 ODS _ALL_ CLOSE;&lt;BR /&gt;12 OPTIONS DEV=SVG;&lt;BR /&gt;13 GOPTIONS XPIXELS=0 YPIXELS=0;&lt;BR /&gt;14 %macro HTML5AccessibleGraphSupported;&lt;BR /&gt;15 %if %_SAS_VERCOMP_FV(9,4,4, 0,0,0) &amp;gt;= 0 %then ACCESSIBLE_GRAPH;&lt;BR /&gt;16 %mend;&lt;BR /&gt;17 FILENAME EGHTML TEMP;&lt;BR /&gt;18 ODS HTML5(ID=EGHTML) FILE=EGHTML&lt;BR /&gt;19 OPTIONS(BITMAP_MODE='INLINE')&lt;BR /&gt;20 %HTML5AccessibleGraphSupported&lt;BR /&gt;MLOGIC(HTML5ACCESSIBLEGRAPHSUPPORTED): Beginning execution.&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): Beginning execution.&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): Parameter FMAJOR has value 9&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): Parameter FMINOR has value 4&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): Parameter FMAINT has value 4&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): Parameter VMAJOR has value 0&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): Parameter VMINOR has value 0&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): Parameter VMAINT has value 0&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): %LOCAL MAJOR&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): %LOCAL MINOR&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): %LOCAL MAINT&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): %LOCAL CURMAJ&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): %LOCAL CURMIN&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): %LOCAL CURMNT&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): %LET (variable name is CURMAJ)&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): %IF condition %eval(&amp;amp;CurMaj EQ V) is FALSE&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): %LET (variable name is MAJOR)&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): %LET (variable name is MINOR)&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): %LET (variable name is MAINT)&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): %LET (variable name is CURMIN)&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): %LET (variable name is CURMNT)&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): %IF condition %eval(&amp;amp;major NE &amp;amp;CurMaj) is FALSE&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): %IF condition %eval(&amp;amp;minor NE &amp;amp;CurMin) is FALSE&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): %IF condition "&amp;amp;maint" = "" is FALSE&lt;BR /&gt;MLOGIC(_SAS_VERCOMP_FV): Ending execution.&lt;BR /&gt;MLOGIC(HTML5ACCESSIBLEGRAPHSUPPORTED): %IF condition %_SAS_VERCOMP_FV(9,4,4, 0,0,0) &amp;gt;= 0 is TRUE&lt;BR /&gt;MPRINT(HTML5ACCESSIBLEGRAPHSUPPORTED): ACCESSIBLE_GRAPH&lt;BR /&gt;MLOGIC(HTML5ACCESSIBLEGRAPHSUPPORTED): Ending execution.&lt;BR /&gt;21 ENCODING='utf-8'&lt;BR /&gt;22 STYLE=HtmlBlue&lt;BR /&gt;23 NOGTITLE&lt;BR /&gt;24 NOGFOOTNOTE&lt;BR /&gt;25 GPATH=&amp;amp;sasworklocation&lt;BR /&gt;26 ;&lt;BR /&gt;NOTE: Writing HTML5(EGHTML) Body file: EGHTML&lt;BR /&gt;27 &lt;BR /&gt;28 options mprint;&lt;BR /&gt;29 /* Makro zur Erstellung von PCT-Daten */&lt;BR /&gt;2 The SAS System 12:59 Thursday, May 15, 2025&lt;/P&gt;
&lt;P&gt;30 %macro create_ipay_pct9(input, output, pstn_value);&lt;BR /&gt;31 data &amp;amp;output (keep=pstn area nmbr vl);&lt;BR /&gt;32 set &amp;amp;input;&lt;BR /&gt;33 if country not in (' ') or wert not= . then do;&lt;BR /&gt;34 %if %length(&amp;amp;pstn_value) &amp;gt; 0 %then %do;&lt;BR /&gt;35 pstn = "&amp;amp;pstn_value";&lt;BR /&gt;36 %end;&lt;BR /&gt;37 end;&lt;BR /&gt;38 run;&lt;BR /&gt;39 %mend create_ipay_pct9;&lt;BR /&gt;40 %create_ipay_pct9(ipay_pct9&amp;amp;year.&amp;amp;month, ipay_pct9_2&amp;amp;year.&amp;amp;month, (PCT2));&lt;BR /&gt;MLOGIC(CREATE_IPAY_PCT9): Beginning execution.&lt;BR /&gt;MLOGIC(CREATE_IPAY_PCT9): Parameter INPUT has value ipay_pct9202504&lt;BR /&gt;MLOGIC(CREATE_IPAY_PCT9): Parameter OUTPUT has value ipay_pct9_2202504&lt;BR /&gt;MLOGIC(CREATE_IPAY_PCT9): Parameter PSTN_VALUE has value (PCT2)&lt;BR /&gt;MPRINT(CREATE_IPAY_PCT9): data ipay_pct9_2202504 (keep=pstn area nmbr vl);&lt;BR /&gt;MPRINT(CREATE_IPAY_PCT9): set ipay_pct9202504;&lt;BR /&gt;MPRINT(CREATE_IPAY_PCT9): if country not in (' ') or wert not= . then do;&lt;BR /&gt;MLOGIC(CREATE_IPAY_PCT9): %IF condition %length(&amp;amp;pstn_value) &amp;gt; 0 is TRUE&lt;BR /&gt;MPRINT(CREATE_IPAY_PCT9): pstn = "(PCT2)";&lt;BR /&gt;MPRINT(CREATE_IPAY_PCT9): end;&lt;BR /&gt;MPRINT(CREATE_IPAY_PCT9): run;&lt;/P&gt;
&lt;P&gt;NOTE: Variable country is uninitialized.&lt;BR /&gt;NOTE: Variable wert is uninitialized.&lt;BR /&gt;NOTE: There were 28 observations read from the data set WORK.IPAY_PCT9202504.&lt;BR /&gt;NOTE: The data set WORK.IPAY_PCT9_2202504 has 28 observations and 4 variables.&lt;BR /&gt;NOTE: Compressing data set WORK.IPAY_PCT9_2202504 increased size by 100.00 percent. &lt;BR /&gt;Compressed is 2 pages; un-compressed would require 1 pages.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;
&lt;P&gt;MLOGIC(CREATE_IPAY_PCT9): Ending execution.&lt;BR /&gt;41 &lt;BR /&gt;42 &lt;BR /&gt;43 %LET _CLIENTTASKLABEL=;&lt;BR /&gt;44 %LET _CLIENTPROCESSFLOWNAME=;&lt;BR /&gt;45 %LET _CLIENTPROJECTPATH=;&lt;BR /&gt;46 %LET _CLIENTPROJECTPATHHOST=;&lt;BR /&gt;47 %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;48 %LET _SASPROGRAMFILE=;&lt;BR /&gt;49 %LET _SASPROGRAMFILEHOST=;&lt;BR /&gt;50 &lt;BR /&gt;51 ;*';*";*/;quit;run;&lt;BR /&gt;52 ODS _ALL_ CLOSE;&lt;BR /&gt;53 &lt;BR /&gt;54 &lt;BR /&gt;55 QUIT; RUN;&lt;/P&gt;
&lt;P&gt;/&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 11:24:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966561#M376163</guid>
      <dc:creator>Hoibai</dc:creator>
      <dc:date>2025-05-15T11:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: passing of parameters an alphanumeric value with a dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966562#M376164</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the length of the variable&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;pstn&amp;nbsp;&lt;/FONT&gt;on the data set, you might just need a length statement to capture longer length values.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also you have no dot in the value in your latest post, so that is not the issue.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Lastly, see&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;'s advice as well as mine regarding logs, etc.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks &amp;amp; kind regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Amir.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 11:24:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966562#M376164</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2025-05-15T11:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: passing of parameters an alphanumeric value with a dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966564#M376165</link>
      <description>&lt;P&gt;In case you missed my earlier post:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Amir_0-1747308377696.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106939iEF4427ABA4FE0585/image-size/large?v=v2&amp;amp;px=999" role="button" title="Amir_0-1747308377696.png" alt="Amir_0-1747308377696.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 11:26:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966564#M376165</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2025-05-15T11:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: passing of parameters an alphanumeric value with a dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966565#M376166</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/463573"&gt;@Hoibai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you need to read carefully&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We want the entire log &lt;STRONG&gt;of the MACRO&lt;/STRONG&gt; and not the approx 50 lines before &lt;SPAN&gt;%create_ipay_pct9 and after the macro ends, we don't need anything after the NOTES at the bottom of the run of the macro.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You need to click on the &amp;lt;/&amp;gt; icon to open a window to paste the log into. This has been mentioned at least 3 times now, please do this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We don't need the MLOGIC option turned on, just MPRINT&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 11:32:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966565#M376166</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-05-15T11:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: passing of parameters an alphanumeric value with a dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966566#M376167</link>
      <description>&lt;P&gt;I'll take those out:&lt;BR /&gt;&amp;lt;/&lt;BR /&gt;%if %length(&amp;amp;pstn_value) &amp;gt; 0 %then %do;&lt;BR /&gt;/&amp;gt;&lt;BR /&gt;but&amp;nbsp;it didn't do it either.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 11:32:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966566#M376167</guid>
      <dc:creator>Hoibai</dc:creator>
      <dc:date>2025-05-15T11:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: passing of parameters an alphanumeric value with a dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966567#M376168</link>
      <description>&lt;PRE&gt;1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Programm 1';
4          %LET _CLIENTPROCESSFLOWNAME='Prozessfluss';
5          %LET _CLIENTPROJECTPATH='H:\My Documents\#Programm_Tabellen\A-SAS-Programme\XML_Ausgabe_Quartal_Final_20250312 .egp';
6          %LET _CLIENTPROJECTPATHHOST='AP923110';
7          %LET _CLIENTPROJECTNAME='XML_Ausgabe_Quartal_Final_20250312 .egp';
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
MLOGIC(HTML5ACCESSIBLEGRAPHSUPPORTED):  Beginning execution.
MLOGIC(_SAS_VERCOMP_FV):  Beginning execution.
MLOGIC(_SAS_VERCOMP_FV):  Parameter FMAJOR has value 9
MLOGIC(_SAS_VERCOMP_FV):  Parameter FMINOR has value 4
MLOGIC(_SAS_VERCOMP_FV):  Parameter FMAINT has value 4
MLOGIC(_SAS_VERCOMP_FV):  Parameter VMAJOR has value 0
MLOGIC(_SAS_VERCOMP_FV):  Parameter VMINOR has value 0
MLOGIC(_SAS_VERCOMP_FV):  Parameter VMAINT has value 0
MLOGIC(_SAS_VERCOMP_FV):  %LOCAL  MAJOR
MLOGIC(_SAS_VERCOMP_FV):  %LOCAL  MINOR
MLOGIC(_SAS_VERCOMP_FV):  %LOCAL  MAINT
MLOGIC(_SAS_VERCOMP_FV):  %LOCAL  CURMAJ
MLOGIC(_SAS_VERCOMP_FV):  %LOCAL  CURMIN
MLOGIC(_SAS_VERCOMP_FV):  %LOCAL  CURMNT
MLOGIC(_SAS_VERCOMP_FV):  %LET (variable name is CURMAJ)
MLOGIC(_SAS_VERCOMP_FV):  %IF condition %eval(&amp;amp;CurMaj EQ V) is FALSE
MLOGIC(_SAS_VERCOMP_FV):  %LET (variable name is MAJOR)
MLOGIC(_SAS_VERCOMP_FV):  %LET (variable name is MINOR)
MLOGIC(_SAS_VERCOMP_FV):  %LET (variable name is MAINT)
MLOGIC(_SAS_VERCOMP_FV):  %LET (variable name is CURMIN)
MLOGIC(_SAS_VERCOMP_FV):  %LET (variable name is CURMNT)
MLOGIC(_SAS_VERCOMP_FV):  %IF condition %eval(&amp;amp;major NE &amp;amp;CurMaj) is FALSE
MLOGIC(_SAS_VERCOMP_FV):  %IF condition %eval(&amp;amp;minor NE &amp;amp;CurMin) is FALSE
MLOGIC(_SAS_VERCOMP_FV):  %IF condition "&amp;amp;maint" = "" is FALSE
MLOGIC(_SAS_VERCOMP_FV):  Ending execution.
MLOGIC(HTML5ACCESSIBLEGRAPHSUPPORTED):  %IF condition %_SAS_VERCOMP_FV(9,4,4, 0,0,0) &amp;gt;= 0 is TRUE
MPRINT(HTML5ACCESSIBLEGRAPHSUPPORTED):   ACCESSIBLE_GRAPH
MLOGIC(HTML5ACCESSIBLEGRAPHSUPPORTED):  Ending execution.
21             ENCODING='utf-8'
22             STYLE=HtmlBlue
23             NOGTITLE
24             NOGFOOTNOTE
25             GPATH=&amp;amp;sasworklocation
26         ;
NOTE: Writing HTML5(EGHTML) Body file: EGHTML
27         
28         options mprint;
29         /* Makro zur Erstellung von PCT-Daten */
2                                                          The SAS System                               12:59 Thursday, May 15, 2025

30         %macro create_ipay_pct9(input, output, pstn_value);
31             data &amp;amp;output (keep=pstn area nmbr vl);
32                 set &amp;amp;input;
33         		if country not in (' ') or wert not= . then do;
34                       pstn = "&amp;amp;pstn_value";
35                 end;
36             run;
37         %mend create_ipay_pct9;
38         %create_ipay_pct9(ipay_pct9&amp;amp;year.&amp;amp;month, ipay_pct9_2&amp;amp;year.&amp;amp;month, (PCT2));
MLOGIC(CREATE_IPAY_PCT9):  Beginning execution.
MLOGIC(CREATE_IPAY_PCT9):  Parameter INPUT has value ipay_pct9202504
MLOGIC(CREATE_IPAY_PCT9):  Parameter OUTPUT has value ipay_pct9_2202504
MLOGIC(CREATE_IPAY_PCT9):  Parameter PSTN_VALUE has value (PCT2)
MPRINT(CREATE_IPAY_PCT9):   data ipay_pct9_2202504 (keep=pstn area nmbr vl);
MPRINT(CREATE_IPAY_PCT9):   set ipay_pct9202504;
MPRINT(CREATE_IPAY_PCT9):   if country not in (' ') or wert not= . then do;
MPRINT(CREATE_IPAY_PCT9):   pstn = "(PCT2)";
MPRINT(CREATE_IPAY_PCT9):   end;
MPRINT(CREATE_IPAY_PCT9):   run;

NOTE: Variable country is uninitialized.
NOTE: Variable wert is uninitialized.
NOTE: There were 28 observations read from the data set WORK.IPAY_PCT9202504.
NOTE: The data set WORK.IPAY_PCT9_2202504 has 28 observations and 4 variables.
NOTE: Compressing data set WORK.IPAY_PCT9_2202504 increased size by 100.00 percent. 
      Compressed is 2 pages; un-compressed would require 1 pages.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds
      

MLOGIC(CREATE_IPAY_PCT9):  Ending execution.
39         
40         
41         %LET _CLIENTTASKLABEL=;
42         %LET _CLIENTPROCESSFLOWNAME=;
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;</description>
      <pubDate>Thu, 15 May 2025 11:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966567#M376168</guid>
      <dc:creator>Hoibai</dc:creator>
      <dc:date>2025-05-15T11:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: passing of parameters an alphanumeric value with a dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966568#M376169</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the length of the variable&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;pstn&amp;nbsp;&lt;/FONT&gt;on the data set?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks &amp;amp; kind regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Amir.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 11:37:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966568#M376169</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2025-05-15T11:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: passing of parameters an alphanumeric value with a dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966569#M376170</link>
      <description>&lt;P&gt;Thanks, you provided the macro in the code box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However it would really help if you read and followed the rest of the instructions. We don't need the 50 or so lines of the log before&amp;nbsp;&lt;SPAN&gt;%create_ipay_pct9 is called. We're trying to help you, but you have to help us.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;MPRINT(CREATE_IPAY_PCT9):   data ipay_pct9_2202504 (keep=pstn area nmbr vl);
MPRINT(CREATE_IPAY_PCT9):   set ipay_pct9202504;
MPRINT(CREATE_IPAY_PCT9):   if country not in (' ') or wert not= . then do;
MPRINT(CREATE_IPAY_PCT9):   pstn = "(PCT2)";
MPRINT(CREATE_IPAY_PCT9):   end;
MPRINT(CREATE_IPAY_PCT9):   run;

&lt;FONT color="#FF0000"&gt;NOTE: Variable country is uninitialized.
NOTE: Variable wert is uninitialized.&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The macro fails because in the &amp;amp;input data set, there is no variable named COUNTRY and no variable named WERT, so SAS doesn't know what to do. In essence, this isn't a macro error, it is a BASE SAS error, you can't use variable names that don't exist in the data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which brings up a discussion of "best practice" when writing macros. First you need to create code that works without macros and without macro variables, for one possible set of values if input, output and pstn_value. It appears you have not done that. Had you done that, you could fix that code and get it to work before writing the macro, based on working code. You need to do that and show us the working code without macros and without macro variables.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 11:50:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966569#M376170</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-05-15T11:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: passing of parameters an alphanumeric value with a dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966570#M376171</link>
      <description>&lt;P&gt;the lenght of pstn = 25&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 11:40:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966570#M376171</guid>
      <dc:creator>Hoibai</dc:creator>
      <dc:date>2025-05-15T11:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: passing of parameters an alphanumeric value with a dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966571#M376172</link>
      <description>&lt;PRE&gt;options mprint;
/* Makro zur Erstellung von PCT-Daten */
%macro create_ipay_pct9(input, output, pstn_value);
    data &amp;amp;output (keep=pstn area nmbr vl);
        set &amp;amp;input;
		if area not in (' ') or vl not= . then do;
              pstn = "&amp;amp;pstn_value";
        end; 
    run;
%mend create_ipay_pct9;
%create_ipay_pct9(ipay_pct9&amp;amp;year.&amp;amp;month, ipay_pct9_2&amp;amp;year.&amp;amp;month, PCT.2);
&lt;/PRE&gt;
&lt;P&gt;Thanks for pointing out the error in the macro. I've corrected the error and now it works as it should.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 11:48:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966571#M376172</guid>
      <dc:creator>Hoibai</dc:creator>
      <dc:date>2025-05-15T11:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: passing of parameters an alphanumeric value with a dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966572#M376173</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Congratulations on working code - I assume the truncation issue was resolved too. It's good to see your code posted in a code box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would further suggest you mark&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;'s post as the solution, as that identified the (one of the) problem(s) - and all from the benefit of sharing the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 11:54:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966572#M376173</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2025-05-15T11:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: passing of parameters an alphanumeric value with a dot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966587#M376180</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/463573"&gt;@Hoibai&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;How can I pass an alphanumeric value with a dot (e.g., PST.2) to a macro? Thanks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Dots (aka periods) do not normally cause any trouble for the macro processor.&lt;/P&gt;
&lt;P&gt;The only place is when want to place a period immediately after the value of a macro variable reference.&amp;nbsp; In your case if you wanted the value of PST to come from a macro variable named PREFIX you might try to use:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;amp;prefix.2&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But that will not work because&amp;nbsp;the macro processor uses the period to mark the end of the macro variable name.&amp;nbsp; In this case so that it knows the macro variable is named PREFIX and not PREFIX2.&amp;nbsp; So to get the period into the value you need to include a second period.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;amp;prefix..2&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That character that does cause trouble with macro calls is the comma.&amp;nbsp; That is because the macro processor uses comma to delimit the parameter values being passed.&amp;nbsp; If you need to pass in a comma to a macro call you will need to mask it some how.&amp;nbsp; &amp;nbsp;One easy way is to design the macro to expect the value to have actual quotes around it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro mymac(input,output,value);
data &amp;amp;output; 
  set &amp;amp;input;
  name = &amp;amp;value ;
run;
%mend;
%mymac(sashelp.class,class,"Smith, Sam");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that the quotes are part of the value.&lt;/P&gt;
&lt;P&gt;You could also use ( ) to mask the value, again the ( ) will be part of the value.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro mymac2(input,output,value);
data &amp;amp;output; 
  set &amp;amp;input;
  where name in &amp;amp;value ;
run;
%mend;
%mymac2(class,class2,("Alfred","Smith, Sam"));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And finally you could use macro quoting.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%quote(Smith, Sam)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 May 2025 14:25:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/passing-of-parameters-an-alphanumeric-value-with-a-dot/m-p/966587#M376180</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-05-15T14:25:13Z</dc:date>
    </item>
  </channel>
</rss>

