<?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: How to create &amp;quot;&amp;gt;&amp;quot; in a macro? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-quot-gt-quot-in-a-macro/m-p/123414#M25331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try %str(&amp;gt;) instead of single quotes in a macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; %SYSFUNC(cats(&amp;amp;number,_,%str(&amp;gt;),%SYSFUNC(Intnx(year, &amp;amp;dvar, -1, end), DDMMYYP10.)));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2012 19:49:49 GMT</pubDate>
    <dc:creator>JasonDiVirgilio</dc:creator>
    <dc:date>2012-05-22T19:49:49Z</dc:date>
    <item>
      <title>How to create "&gt;" in a macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-quot-gt-quot-in-a-macro/m-p/123413#M25330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="text-align: center; margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt; mso-fareast-language: DE;"&gt;%SYSFUNC&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt; mso-fareast-language: DE;"&gt;(cats(&amp;amp;number,_,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt; mso-fareast-language: DE;"&gt;'&amp;gt;'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt; mso-fareast-language: DE;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt; mso-fareast-language: DE;"&gt;%SYSFUNC&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt; mso-fareast-language: DE;"&gt;(Intnx(year, &amp;amp;dvar, -&lt;/SPAN&gt;&lt;STRONG style="mso-fareast-language: DE; color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt; mso-fareast-language: DE;"&gt;, end), &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 10pt; mso-fareast-language: DE;"&gt;DDMMYYP10.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt; mso-fareast-language: DE;"&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; background: white; color: #575757; font-size: 10pt; mso-fareast-language: DE;"&gt;in a Macro to create the text &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 10pt;"&gt;14_&amp;gt;31.12.2018&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; background: white; color: #575757; font-size: 10pt;"&gt;However, I get the error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: #000000; font-size: 10pt;"&gt;-----------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN lang="EN-GB" style="font-family: 'Courier New'; background: white; color: green; font-size: 10pt;"&gt;NOTE: Line generated by the macro function "SYSFUNC".&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;23&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14_'&amp;gt;'31.12.2018&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: red; font-size: 10pt;"&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;&amp;nbsp;&amp;nbsp; ___&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: red; font-size: 10pt;"&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;&amp;nbsp;&amp;nbsp; 49&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: #000000; font-size: 10pt;"&gt;----------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I eliminate the error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 15:36:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-quot-gt-quot-in-a-macro/m-p/123413#M25330</guid>
      <dc:creator>sfmeier</dc:creator>
      <dc:date>2012-05-22T15:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to create "&gt;" in a macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-quot-gt-quot-in-a-macro/m-p/123414#M25331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try %str(&amp;gt;) instead of single quotes in a macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; %SYSFUNC(cats(&amp;amp;number,_,%str(&amp;gt;),%SYSFUNC(Intnx(year, &amp;amp;dvar, -1, end), DDMMYYP10.)));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 19:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-quot-gt-quot-in-a-macro/m-p/123414#M25331</guid>
      <dc:creator>JasonDiVirgilio</dc:creator>
      <dc:date>2012-05-22T19:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create "&gt;" in a macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-quot-gt-quot-in-a-macro/m-p/123415#M25332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: Consolas, Courier New; font-size: 90%; line-height: 1.1;"&gt;&lt;SPAN&gt;Hope this helps a bit. Good luck!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, Courier New; font-size: 90%; line-height: 1.1;"&gt;&lt;SPAN&gt;&amp;nbsp; %&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;*-- cats() called through %sysfunc() seems to evaluate &amp;gt; as a logical expression &lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; even when macro quoted. ran on 9.3 ts1m0 on w32_7pro --*;&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;%put&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN&gt;(cats(***,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;%str&lt;/SPAN&gt;&lt;SPAN&gt;(&amp;gt;),***));&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; %&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;*-- on log -- 0 since null(nothing) is not greater than another null. &lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; ***0***&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; --*;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; %&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;*-- but we do not need cats for string concatenation in macro --*;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;%let&lt;/SPAN&gt;&lt;SPAN&gt; number = 14;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;%let&lt;/SPAN&gt;&lt;SPAN&gt; date = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN&gt;(today());&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;%let&lt;/SPAN&gt;&lt;SPAN&gt; ldopy = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN&gt;(intnx(year, &amp;amp;date, -1, end), DDMMYYP10.); &lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;%put&lt;/SPAN&gt;&lt;SPAN&gt; last day of previous year = &amp;amp;ldopy;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;%put&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;number._&amp;gt;&amp;amp;ldopy;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; %&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;*-- on log&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 14_&amp;gt;31.12.2011&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; --*;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 20:55:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-quot-gt-quot-in-a-macro/m-p/123415#M25332</guid>
      <dc:creator>chang_y_chung_hotmail_com</dc:creator>
      <dc:date>2012-05-22T20:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to create "&gt;" in a macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-quot-gt-quot-in-a-macro/m-p/123416#M25333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree with chang_y_chung: just try without CATS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; text-align: center; background-color: white; color: blue;"&gt;%SYSFUNC&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; text-align: center; background-color: white; color: black;"&gt;(cats(&amp;amp;number,_,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; text-align: center; background-color: white; color: purple;"&gt;'&amp;gt;'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; text-align: center; background-color: white; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; text-align: center; background-color: white; color: blue;"&gt;%SYSFUNC&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; text-align: center; background-color: white; color: black;"&gt;(Intnx(year, &amp;amp;dvar, -&lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; font-family: 'Courier New'; text-align: center; color: teal; background-color: white;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; text-align: center; background-color: white; color: black;"&gt;, end), &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; text-align: center; background-color: white; color: teal;"&gt;DDMMYYP10.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; text-align: center; background-color: white; color: black;"&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; text-align: center; background-color: white; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Edited code: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; text-align: center; background-color: white; color: black;"&gt;&amp;amp;number_&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; text-align: center; background-color: white; color: purple;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; text-align: center; background-color: white; color: blue;"&gt;%SYSFUNC&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; text-align: center; background-color: white; color: black;"&gt;(Intnx(year, &amp;amp;dvar, -&lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; font-family: 'Courier New'; text-align: center; color: teal; background-color: white;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; text-align: center; background-color: white; color: black;"&gt;, end), &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; text-align: center; background-color: white; color: teal;"&gt;DDMMYYP10.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; text-align: center; background-color: white; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 22:09:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-quot-gt-quot-in-a-macro/m-p/123416#M25333</guid>
      <dc:creator>dbiehle</dc:creator>
      <dc:date>2012-05-22T22:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create "&gt;" in a macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-quot-gt-quot-in-a-macro/m-p/123417#M25334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thx, it works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 13:29:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-quot-gt-quot-in-a-macro/m-p/123417#M25334</guid>
      <dc:creator>sfmeier</dc:creator>
      <dc:date>2012-05-23T13:29:42Z</dc:date>
    </item>
  </channel>
</rss>

