<?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: Creating a EMAIL - ERROR 180-322: Statement is not valid or it is used out of proper order. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-EMAIL-ERROR-180-322-Statement-is-not-valid-or-it-is/m-p/947926#M370998</link>
    <description>&lt;P&gt;Probably you want&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%EMAIL&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;instead of&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%EMAIL();&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 17 Oct 2024 18:12:15 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2024-10-17T18:12:15Z</dc:date>
    <item>
      <title>Creating a EMAIL - ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-EMAIL-ERROR-180-322-Statement-is-not-valid-or-it-is/m-p/947925#M370997</link>
      <description>&lt;PRE class=""&gt;&lt;SPAN class=""&gt;I got the error below and I know that can't identify what could be wrong in the code.  =Anyone know the answer&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;NOTE: Writing HTML Body file: OUTBOX&lt;BR /&gt;NOTE: There were 5 observations read from the data set TMP.XXXX&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;Message sent&lt;BR /&gt;To: 'fulano@XXXX.com.br'&lt;BR /&gt;Cc: 'beltrano@XXXX.com.br'&lt;BR /&gt;Bcc:&lt;BR /&gt;Subject: Atualização de cadastro feitas entre as data movimento: INTNX('MONTH1', DATE(),-5, 'E') e INTNX('MONTH1', DATE(), -2, 'E')&lt;BR /&gt;Attachments:&lt;BR /&gt;%EMAIL();&lt;BR /&gt;&lt;STRONG&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;_________________________________________________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/* CODE */&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;__________________________________________________________________________________________&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%LET DTMVTFIM = INTNX('MONTH1', DATE(), &amp;amp;DT_INI., 'E');&lt;BR /&gt;%LET DTMVTINI = INTNX('MONTH1', DATE(),&amp;amp;DT_FIM., 'E');&lt;BR /&gt;&lt;BR /&gt;%MACRO EMAIL;&lt;/P&gt;&lt;P&gt;/*ENVIANDO E-MAIL */&lt;BR /&gt;options emailsys=smtp emailhost='smtp.XXXX.com.br' emailport=25 SPOOL;&lt;BR /&gt;&lt;BR /&gt;filename outbox email&lt;BR /&gt;from='naoresponder@XXXX.com.br'&lt;BR /&gt;to=('fulano@XXXX.com.br')&lt;BR /&gt;cc = ('beltrano@XXXX.com.br')&lt;BR /&gt;type='text/html'&lt;BR /&gt;subject="Atualização de cadastro feitas entre as data movimento: &amp;amp;DTMVTINI. e &amp;amp;DTMVTFIM. ";&lt;/P&gt;&lt;P&gt;ods html body=outbox style=htmlblue;&lt;BR /&gt;ods escapechar="^";&lt;BR /&gt;ods text = "^Identificamos que no periodo de &amp;amp;DTMVTINI. e &amp;amp;DTMVTFIM. ";&lt;BR /&gt;ods text = " ";&lt;BR /&gt;ods text = "^OS nomes abaixo para atualização do cadastro";&lt;BR /&gt;&lt;BR /&gt;PROC PRINT DATA=TMP.XXXXXXX_FINAL NOOBS&lt;BR /&gt;STYLE(HEADER)={JUST=C FOREGROUND=BLACK font_size=3}&lt;BR /&gt;STYLE(TABLE)={JUST=C WIDTH=50%} LABEL;&lt;/P&gt;&lt;P&gt;LABEL ClientCad='ClientCad';&lt;BR /&gt;VAR MCI / STYLE(DATA)={JUST=C font_size=3} STYLE(HEADER)={BACKGROUND=GREY};&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;ods html close;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%MEND EMAIL;&lt;/P&gt;&lt;P&gt;%EMAIL();&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 18:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-EMAIL-ERROR-180-322-Statement-is-not-valid-or-it-is/m-p/947925#M370997</guid>
      <dc:creator>Romanojr</dc:creator>
      <dc:date>2024-10-17T18:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a EMAIL - ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-EMAIL-ERROR-180-322-Statement-is-not-valid-or-it-is/m-p/947926#M370998</link>
      <description>&lt;P&gt;Probably you want&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%EMAIL&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;instead of&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%EMAIL();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Oct 2024 18:12:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-EMAIL-ERROR-180-322-Statement-is-not-valid-or-it-is/m-p/947926#M370998</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-10-17T18:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a EMAIL - ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-EMAIL-ERROR-180-322-Statement-is-not-valid-or-it-is/m-p/947929#M371000</link>
      <description>&lt;P&gt;Since your macro does not contain any macro elements which are valid only in a macro, you can run the code without the macro definition, which makes debugging easier.&lt;/P&gt;
&lt;P&gt;Submit your code from the OPTIONS to the ODS HTML CLOSE statement, and post the log by copy/pasting the text into a window opened with this button:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 18:25:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-EMAIL-ERROR-180-322-Statement-is-not-valid-or-it-is/m-p/947929#M371000</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-10-17T18:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a EMAIL - ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-EMAIL-ERROR-180-322-Statement-is-not-valid-or-it-is/m-p/947930#M371001</link>
      <description>Probably you also want&lt;BR /&gt;&lt;BR /&gt;%LET DTMVTFIM = %sysfunc(INTNX(MONTH1, %sysfunc(DATE()), &amp;amp;DT_INI., E));</description>
      <pubDate>Thu, 17 Oct 2024 18:27:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-EMAIL-ERROR-180-322-Statement-is-not-valid-or-it-is/m-p/947930#M371001</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2024-10-17T18:27:19Z</dc:date>
    </item>
  </channel>
</rss>

