<?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 needed in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Macrocode-correction-needed/m-p/711440#M26921</link>
    <description>&lt;P&gt;Maxim 28, Macro Variables Need No Formats.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let Auswertungstag = %sysfunc(inputn(&amp;amp;jahr.0101,yymmdd8.));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let Auswertungstag = %sysfunc(mdy(1,1,&amp;amp;jahr.));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The raw numeric value works just like the "ddmmmyyyy"d string in code, but is much easier to handle, as you need never worry about quotes.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2021 13:04:40 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-01-14T13:04:40Z</dc:date>
    <item>
      <title>Macrocode correction needed</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macrocode-correction-needed/m-p/711425#M26916</link>
      <description>&lt;P&gt;hello dear SAS experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to parametrize a macrovariable which I use in a bunch of programs. I wrote:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* Jahr eingeben ;&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 = 2022 ;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* Macro-code fuer den Auswertungstag ;&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; Auswertungstag = '01JAN&amp;amp;Jahr.'D; &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;Auswertungstag.;&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;I want to use &amp;amp;Jahr. to Change the year and get the Dates with the following form: '01JAN2022'D&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;What should I Change?&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;Regards&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 12:11:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macrocode-correction-needed/m-p/711425#M26916</guid>
      <dc:creator>PierreYvesILY</dc:creator>
      <dc:date>2021-01-14T12:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Macrocode correction needed</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macrocode-correction-needed/m-p/711427#M26917</link>
      <description>&lt;P&gt;In order to resolve a macro variable it should be in&amp;nbsp; double quotes. Try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let Auswertungstag = "01JAN&amp;amp;Jahr."D;

%put &amp;amp;Auswertungstag.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jan 2021 12:16:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macrocode-correction-needed/m-p/711427#M26917</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2021-01-14T12:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Macrocode correction needed</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macrocode-correction-needed/m-p/711440#M26921</link>
      <description>&lt;P&gt;Maxim 28, Macro Variables Need No Formats.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let Auswertungstag = %sysfunc(inputn(&amp;amp;jahr.0101,yymmdd8.));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let Auswertungstag = %sysfunc(mdy(1,1,&amp;amp;jahr.));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The raw numeric value works just like the "ddmmmyyyy"d string in code, but is much easier to handle, as you need never worry about quotes.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 13:04:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macrocode-correction-needed/m-p/711440#M26921</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-14T13:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Macrocode correction needed</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macrocode-correction-needed/m-p/711444#M26922</link>
      <description>Thx to both of you.</description>
      <pubDate>Thu, 14 Jan 2021 13:13:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macrocode-correction-needed/m-p/711444#M26922</guid>
      <dc:creator>PierreYvesILY</dc:creator>
      <dc:date>2021-01-14T13:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Macrocode correction needed</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Macrocode-correction-needed/m-p/711473#M26928</link>
      <description>Thank you Kurt.&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:19:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Macrocode-correction-needed/m-p/711473#M26928</guid>
      <dc:creator>PierreYvesILY</dc:creator>
      <dc:date>2021-01-14T15:19:33Z</dc:date>
    </item>
  </channel>
</rss>

