<?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: macrocode correction in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/macrocode-correction/m-p/711456#M26924</link>
    <description>&lt;P&gt;looks like you have a period (.) at the end of your %end:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Quelldatei="GESAMT_WTL_RKR"; %end.;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2021 14:32:34 GMT</pubDate>
    <dc:creator>utrocketeng</dc:creator>
    <dc:date>2021-01-14T14:32:34Z</dc:date>
    <item>
      <title>macrocode correction</title>
      <link>https://communities.sas.com/t5/New-SAS-User/macrocode-correction/m-p/711455#M26923</link>
      <description>&lt;P&gt;Dear SAS users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote the following:&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Jahr = 2021 ; &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#008000"&gt;* Hier das Jahr einsetzten ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;Jahr.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;Jahr = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;2021&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%then&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Quelldatei="GESAMT_WTL_RKR"; %end.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%else&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Quelldatei="GESAMT_JHR_RKR_&amp;amp;Jahr.";&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;and gets :&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;26 %let Jahr = 2021 ; * Hier das Jahr einsetzten ;&lt;/P&gt;&lt;P&gt;27 %put &amp;amp;Jahr.;&lt;/P&gt;&lt;P&gt;2021&lt;/P&gt;&lt;P&gt;28&lt;/P&gt;&lt;P&gt;29 %if &amp;amp;Jahr. = 2021 %then %do;&lt;/P&gt;&lt;P&gt;30 %let Quelldatei="GESAMT_WTL_RKR"; %end.;&lt;/P&gt;&lt;P&gt;30 %let Quelldatei="GESAMT_WTL_RKR"; %end.;&lt;/P&gt;&lt;P&gt;_&lt;/P&gt;&lt;P&gt;180&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro END not resolved.&lt;/P&gt;&lt;P&gt;ERROR: The %ELSE statement is not valid in open code.&lt;/P&gt;&lt;P&gt;31 %else %do;&lt;/P&gt;&lt;P&gt;32 %let Quelldatei="GESAMT_JHR_RKR_&amp;amp;Jahr.";&lt;/P&gt;&lt;P&gt;33 %end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can I correct this?&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 14:11:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/macrocode-correction/m-p/711455#M26923</guid>
      <dc:creator>PierreYvesILY</dc:creator>
      <dc:date>2021-01-14T14:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: macrocode correction</title>
      <link>https://communities.sas.com/t5/New-SAS-User/macrocode-correction/m-p/711456#M26924</link>
      <description>&lt;P&gt;looks like you have a period (.) at the end of your %end:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Quelldatei="GESAMT_WTL_RKR"; %end.;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 14:32:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/macrocode-correction/m-p/711456#M26924</guid>
      <dc:creator>utrocketeng</dc:creator>
      <dc:date>2021-01-14T14:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: macrocode correction</title>
      <link>https://communities.sas.com/t5/New-SAS-User/macrocode-correction/m-p/711463#M26925</link>
      <description>&lt;P&gt;Adding:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rarely is it necessary to put macro variable values in quotes. Instead of&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let Quelldatei="GESAMT_WTL_RKR";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;you'd probably be better off using&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let Quelldatei=GESAMT_WTL_RKR;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jan 2021 14:54:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/macrocode-correction/m-p/711463#M26925</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-01-14T14:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: macrocode correction</title>
      <link>https://communities.sas.com/t5/New-SAS-User/macrocode-correction/m-p/711472#M26927</link>
      <description>Thank you Paige.&lt;BR /&gt;I wish you a happy and successfull year 2021.&lt;BR /&gt;Thank you for your help in 2020,&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 14 Jan 2021 15:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/macrocode-correction/m-p/711472#M26927</guid>
      <dc:creator>PierreYvesILY</dc:creator>
      <dc:date>2021-01-14T15:16:59Z</dc:date>
    </item>
  </channel>
</rss>

