<?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 Why Does &amp;quot;&amp;gt;=&amp;quot; Get Translated into an Arrow? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-Does-quot-gt-quot-Get-Translated-into-an-Arrow/m-p/749546#M235561</link>
    <description>&lt;P&gt;I have found an issue that I have resolved, but I wanted someone to explain to me why it might be happening and if there is a workaround.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, we store a log file for every program we run.&amp;nbsp; After the program runs, we run the log file through another macro that searches for errors/warnings and returns a report informing us if there are issues in the log.&amp;nbsp; I found an instance where the log report claimed that there were no issues, but the expected output file was never created.&amp;nbsp; When I manually searched the log, I found that there was a single error at the bottom of the log file.&amp;nbsp; The log file has 3153 rows, but when I examined the log summary macro, I found that only 2261 lines were being read in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is line 2261 where SAS stops reading in the log file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%createcheck(chk=102, whr=%str(exftrt='Elexacaftor/Tezacaftor/Ivacaftor' &amp;amp; timepart(dosetm)&amp;gt;='15:00't), keepvars=&amp;amp;idvars. visitmnemonic exftrt dosedttm comment resolved, message=%str(Study drug dose time is expected to be in the morning));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found that the log is translating the "&amp;gt;=" into a right-pointing arrow.&amp;nbsp; Further, the ")," after denoting that a character string as a time value is translated into an Extra-High Tone Bar (unicode ID: U+02E5).&amp;nbsp; When I attached the log file, and those special characters disappear, so below is a screen shot of lines 2259-2267.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Log_Screenshot.PNG" style="width: 834px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60611i49CD43622ABD1035/image-size/large?v=v2&amp;amp;px=999" role="button" title="Log_Screenshot.PNG" alt="Log_Screenshot.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm assuming that the arrow is telling SAS that it found the end of a file and stopped reading in more data because&amp;nbsp;I fixed the code by changing "&amp;gt;=" to "ge", and the code ran fine with the log report detecting the error message at the bottom of the page.&amp;nbsp; It seems that the tone bar is not influencing the log report at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My concern is that I have never used "ge" before but have always used "&amp;gt;=".&amp;nbsp; I'm concerned about how many times in my log reports issues were not detected because the file was prematurely stopped when reading it in.&amp;nbsp; This is especially concerning because line 2267 in the screenshot above does not translate "&amp;gt;=" into an arrow.&amp;nbsp; Has anyone else had to deal with this problem?&amp;nbsp; Is there a way to deal with it without going through all programs that I am running regularly (literally hundreds of program files) and searching them all for "&amp;gt;="?&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 13:57:00 GMT</pubDate>
    <dc:creator>djbateman</dc:creator>
    <dc:date>2021-06-22T13:57:00Z</dc:date>
    <item>
      <title>Why Does "&gt;=" Get Translated into an Arrow?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-Does-quot-gt-quot-Get-Translated-into-an-Arrow/m-p/749546#M235561</link>
      <description>&lt;P&gt;I have found an issue that I have resolved, but I wanted someone to explain to me why it might be happening and if there is a workaround.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, we store a log file for every program we run.&amp;nbsp; After the program runs, we run the log file through another macro that searches for errors/warnings and returns a report informing us if there are issues in the log.&amp;nbsp; I found an instance where the log report claimed that there were no issues, but the expected output file was never created.&amp;nbsp; When I manually searched the log, I found that there was a single error at the bottom of the log file.&amp;nbsp; The log file has 3153 rows, but when I examined the log summary macro, I found that only 2261 lines were being read in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is line 2261 where SAS stops reading in the log file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%createcheck(chk=102, whr=%str(exftrt='Elexacaftor/Tezacaftor/Ivacaftor' &amp;amp; timepart(dosetm)&amp;gt;='15:00't), keepvars=&amp;amp;idvars. visitmnemonic exftrt dosedttm comment resolved, message=%str(Study drug dose time is expected to be in the morning));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found that the log is translating the "&amp;gt;=" into a right-pointing arrow.&amp;nbsp; Further, the ")," after denoting that a character string as a time value is translated into an Extra-High Tone Bar (unicode ID: U+02E5).&amp;nbsp; When I attached the log file, and those special characters disappear, so below is a screen shot of lines 2259-2267.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Log_Screenshot.PNG" style="width: 834px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60611i49CD43622ABD1035/image-size/large?v=v2&amp;amp;px=999" role="button" title="Log_Screenshot.PNG" alt="Log_Screenshot.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm assuming that the arrow is telling SAS that it found the end of a file and stopped reading in more data because&amp;nbsp;I fixed the code by changing "&amp;gt;=" to "ge", and the code ran fine with the log report detecting the error message at the bottom of the page.&amp;nbsp; It seems that the tone bar is not influencing the log report at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My concern is that I have never used "ge" before but have always used "&amp;gt;=".&amp;nbsp; I'm concerned about how many times in my log reports issues were not detected because the file was prematurely stopped when reading it in.&amp;nbsp; This is especially concerning because line 2267 in the screenshot above does not translate "&amp;gt;=" into an arrow.&amp;nbsp; Has anyone else had to deal with this problem?&amp;nbsp; Is there a way to deal with it without going through all programs that I am running regularly (literally hundreds of program files) and searching them all for "&amp;gt;="?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 13:57:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-Does-quot-gt-quot-Get-Translated-into-an-Arrow/m-p/749546#M235561</guid>
      <dc:creator>djbateman</dc:creator>
      <dc:date>2021-06-22T13:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why Does "&gt;=" Get Translated into an Arrow?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-Does-quot-gt-quot-Get-Translated-into-an-Arrow/m-p/749549#M235563</link>
      <description>&lt;P&gt;This whole thing might be a moot point.&amp;nbsp; After I fixed the error in the log, this arrow is no longer being created, and the program doesn't stop reading in the log file prematurely.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 14:05:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-Does-quot-gt-quot-Get-Translated-into-an-Arrow/m-p/749549#M235563</guid>
      <dc:creator>djbateman</dc:creator>
      <dc:date>2021-06-22T14:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why Does "&gt;=" Get Translated into an Arrow?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-Does-quot-gt-quot-Get-Translated-into-an-Arrow/m-p/749561#M235569</link>
      <description>&lt;P&gt;Crazy problem! I cannot reproduce the problem, but I do have an equally crazy suggestion: use a file extension (such as '.log' or '.txt') for the file that you are writing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When some text editors open a file that does not have an extension, they try to guess what kind of file it is. If a text editor thinks it is viewing an HTML file, it will try to interpret "&amp;amp;token;" and "&amp;lt;stuff&amp;gt;" as HTML tags. (For example, in html, &amp;amp;rarr; is the tag for a right arrow.)&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't actually believe my conjecture is affecting you because (1) Notepad is supposed to open files as a plain text file, and (2) I don't see how those symbols could possibly be generated by what you've shown. Still, it doesn't hurt to add '.log' to the end of your text files.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 14:27:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-Does-quot-gt-quot-Get-Translated-into-an-Arrow/m-p/749561#M235569</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-06-22T14:27:14Z</dc:date>
    </item>
  </channel>
</rss>

