<?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: Want to mask the character '&amp;amp;' in the Marco. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Want-to-mask-the-character-amp-in-the-Marco/m-p/553776#M154014</link>
    <description>&lt;P&gt;What &amp;amp; do you want to mask. There are several in your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest to change&amp;nbsp;&lt;STRONG&gt;FILE EMALRPT MOD;&lt;/STRONG&gt; with&amp;nbsp;&lt;STRONG&gt;FILE PRINT;&lt;/STRONG&gt; for a test.&lt;/P&gt;
&lt;P&gt;Post log and result and point at what yo want to get instead.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2019 19:41:14 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2019-04-24T19:41:14Z</dc:date>
    <item>
      <title>Want to mask the character '&amp;' in the Marco.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Want-to-mask-the-character-amp-in-the-Marco/m-p/553667#M153978</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my coding.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to mask the customer name ( In my case Business name) which has '&amp;amp;' in it.&amp;nbsp; My coding is working as I expect, but I am getting the warning message , but don't want. Can any expertise help me . I am using SAS 9.4&lt;/P&gt;
&lt;P&gt;filename EMALRPT 'C:\TMP\TESTEMAIL.txt';&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;%MACRO EMAILRPT(RE,TOADD,FROMADD,CCADD,CMTH1,CUSTNAME);&lt;BR /&gt;DATA _NULL_;&lt;BR /&gt;FILE EMALRPT MOD;&lt;/P&gt;
&lt;P&gt;PUT @1 'OPTIONS S=80 ;';&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;PUT @1 'FILENAME EFILE EMAIL ';&lt;BR /&gt;PUT @4 ' TO = ( ';&lt;BR /&gt;PUT @3 "'&amp;amp;TOADD'";&lt;BR /&gt;PUT @9 ' )';&lt;BR /&gt;PUT @3 " FROM= &amp;amp;FROMADD ";&lt;BR /&gt;PUT @3 ' CC = ( ';&lt;BR /&gt;PUT @3 "&amp;amp;CCADD ";&lt;BR /&gt;PUT &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/145066"&gt;@10&lt;/a&gt; ')';&lt;/P&gt;
&lt;P&gt;SUBJECT = CAT('SUBJECT=%NRSTR("','PRE_NEED SERVICE REPORT FOR : ',&lt;BR /&gt;"%NRSTR(&amp;amp;CUSTNAME). &amp;amp;CMTH1",'")');&lt;BR /&gt;PUT @3 SUBJECT ;&lt;/P&gt;
&lt;P&gt;/*&lt;BR /&gt;SUBJECT = CAT('SUBJECT=%NRSTR(','PRE_NEED SERVICE REPORT FOR : ',"&amp;amp;CUSTNAME&lt;BR /&gt;PUT @3 SUBJECT;&lt;BR /&gt;*/&lt;BR /&gt;PUT #3 'ATTACH = ( ';&lt;BR /&gt;PUT @3 "'VA959.VQ3.PDF(#&amp;amp;RE)' ";&lt;BR /&gt;PUT @3 "CT = 'APPLICATION/PDF'";&lt;BR /&gt;PUT @3 "EXT = 'pdf' ";&lt;BR /&gt;NAME = CAT('NAME=%NRSTR("',"&amp;amp;CUSTNAME. &amp;amp;CMTH1",'")');&lt;BR /&gt;PUT @3 NAME;&lt;BR /&gt;PUT @3 ' ';&lt;BR /&gt;PUT &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/145066"&gt;@10&lt;/a&gt; ');' ;&lt;BR /&gt;PUT @3 'RUN;';&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;PUT @1 'DATA _NULL_ ;';&lt;/P&gt;
&lt;P&gt;PUT @1 'FILE EFILE ;';&lt;BR /&gt;PUT @1 " PUT 'Dear Customer, ';";&lt;/P&gt;
&lt;P&gt;PUT @1 'RUN;';&lt;/P&gt;
&lt;P&gt;RUN;&lt;BR /&gt;%MEND EMAILRPT;&lt;/P&gt;
&lt;P&gt;%let ASATDATE = FEB2019;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;DATA _NULL_;&lt;BR /&gt;VAL=1;&lt;BR /&gt;TOADD='MY@GMAIL.COM';&lt;BR /&gt;FROMADD="'FROMMYEMAIL@GMAIL.COM'";&lt;BR /&gt;CCADD="'MYCCEMAIL@GMAIL.COM'";&lt;BR /&gt;CMTH1="&amp;amp;ASATDATE";&lt;BR /&gt;CUSTNM = 'COMPANY1 &amp;amp;COMPNAY2 * # , / TEST DDD';&lt;/P&gt;
&lt;P&gt;CALL EXECUTE (CATS('%EMAILRPT(',VAL,',',TOADD,',',FROMADD,&lt;BR /&gt;',',CCADD,',',CMTH1,',','%NRSTR(',CUSTNM,'))'));&lt;BR /&gt;STOP;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 15:07:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Want-to-mask-the-character-amp-in-the-Marco/m-p/553667#M153978</guid>
      <dc:creator>Inp</dc:creator>
      <dc:date>2019-04-24T15:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Want to mask the character '&amp;' in the Marco.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Want-to-mask-the-character-amp-in-the-Marco/m-p/553776#M154014</link>
      <description>&lt;P&gt;What &amp;amp; do you want to mask. There are several in your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest to change&amp;nbsp;&lt;STRONG&gt;FILE EMALRPT MOD;&lt;/STRONG&gt; with&amp;nbsp;&lt;STRONG&gt;FILE PRINT;&lt;/STRONG&gt; for a test.&lt;/P&gt;
&lt;P&gt;Post log and result and point at what yo want to get instead.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 19:41:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Want-to-mask-the-character-amp-in-the-Marco/m-p/553776#M154014</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-04-24T19:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Want to mask the character '&amp;' in the Marco.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Want-to-mask-the-character-amp-in-the-Marco/m-p/553797#M154022</link>
      <description>At the beginning of the DATA step, transfer the value of the macro variable to a DATA step variable:&lt;BR /&gt;&lt;BR /&gt;Custname = symget('custname') ;&lt;BR /&gt;&lt;BR /&gt;You will have no trouble working with a DATA step variable that contains an ampersand.</description>
      <pubDate>Wed, 24 Apr 2019 21:36:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Want-to-mask-the-character-amp-in-the-Marco/m-p/553797#M154022</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-04-24T21:36:16Z</dc:date>
    </item>
  </channel>
</rss>

