<?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: Retrieving RTL error message text in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Retrieving-RTL-error-message-text/m-p/983663#M26623</link>
    <description>Steve, &lt;BR /&gt; &lt;BR /&gt;Thanks - I missed that one as it wasn't in my OVMS documentation.  It does have the problem in that it isn't portable between the OS's which is often a goal of mine.  Is there any possibility of seeing status codes suitable for a FormatMessage call show up somewhere, perhaps the fifth parameter of ERRSNS and defined in FORDEF? &lt;BR /&gt; &lt;BR /&gt;James</description>
    <pubDate>Thu, 14 Feb 2002 06:38:19 GMT</pubDate>
    <dc:creator>james1</dc:creator>
    <dc:date>2002-02-14T06:38:19Z</dc:date>
    <item>
      <title>Retrieving RTL error message text</title>
      <link>https://community.intel.com/t5/Software-Archive/Retrieving-RTL-error-message-text/m-p/983661#M26621</link>
      <description>Is there a way to retrieve the error message text for an RTL error that doesn't include a Win32 error?  For example if one does an internal read, such as &lt;BR /&gt;&lt;PRE&gt; 
read (string, '(i)', iostat=status) number 
&lt;/PRE&gt; &lt;BR /&gt;&lt;P&gt; &lt;BR /&gt;and there is an error, about all you can say is &lt;BR /&gt;&lt;PRE&gt; 
if (status .ne. 0) type *, 'RTL error ', iostat 
&lt;/PRE&gt; &lt;BR /&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;You can use ERRSNS in many cases where an underlying Win32 I/O routine was used but not in all cases.  If the second parameter is zero then you essentially have no error message to retrieve, as in the case above. &lt;BR /&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;What I am looking for is something like under the OVMS compiler where you have message numbers defined in $FORDEF that correspond to the iostat values, such that you can do an ERRSNS(,,,,status) and lookup the message according to that return value, which is one of the FOR$_xxx constants defined for $FORDEF.  This way we could go ahead and use ForrmatMessage and return an appropriate error message in a controlled fashion. &lt;BR /&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;I ask because I was once quoted telling someone that we are past the days where we have to look up numeric error codes to determine what went wrong at runtime.  :-) &lt;BR /&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;James&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2002 11:15:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Retrieving-RTL-error-message-text/m-p/983661#M26621</guid>
      <dc:creator>james1</dc:creator>
      <dc:date>2002-02-13T11:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving RTL error message text</title>
      <link>https://community.intel.com/t5/Software-Archive/Retrieving-RTL-error-message-text/m-p/983662#M26622</link>
      <description>Look up GERROR in the online help.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 14 Feb 2002 01:08:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Retrieving-RTL-error-message-text/m-p/983662#M26622</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2002-02-14T01:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving RTL error message text</title>
      <link>https://community.intel.com/t5/Software-Archive/Retrieving-RTL-error-message-text/m-p/983663#M26623</link>
      <description>Steve, &lt;BR /&gt; &lt;BR /&gt;Thanks - I missed that one as it wasn't in my OVMS documentation.  It does have the problem in that it isn't portable between the OS's which is often a goal of mine.  Is there any possibility of seeing status codes suitable for a FormatMessage call show up somewhere, perhaps the fifth parameter of ERRSNS and defined in FORDEF? &lt;BR /&gt; &lt;BR /&gt;James</description>
      <pubDate>Thu, 14 Feb 2002 06:38:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Retrieving-RTL-error-message-text/m-p/983663#M26623</guid>
      <dc:creator>james1</dc:creator>
      <dc:date>2002-02-14T06:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving RTL error message text</title>
      <link>https://community.intel.com/t5/Software-Archive/Retrieving-RTL-error-message-text/m-p/983664#M26624</link>
      <description>FormatMessage knows only about Win32 errors.&lt;BR /&gt;&lt;BR /&gt;Your best bet is to write a VMS implementation of GERROR - pretty easy with $GETMSG.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 14 Feb 2002 07:06:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Retrieving-RTL-error-message-text/m-p/983664#M26624</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2002-02-14T07:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving RTL error message text</title>
      <link>https://community.intel.com/t5/Software-Archive/Retrieving-RTL-error-message-text/m-p/983665#M26625</link>
      <description>What isn't trivial is making a VMS version of GERROR interoperate with ERRSNS.  With the DFPORT version you can call GERROR and subsequently call ERRSNS as expected.  However in a VMS version I would need to call ERRSNS to retrieve the conditional status for SYS$GETMSG which would in turn clear the ERRSNS information.  I still need access to the operating system error if the situation warrants, and to fully emulate GERROR I would need to be able to obtain the message text without call ERRSNS.  &lt;BR /&gt;  &lt;BR /&gt;James</description>
      <pubDate>Thu, 14 Feb 2002 08:09:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Retrieving-RTL-error-message-text/m-p/983665#M26625</guid>
      <dc:creator>james1</dc:creator>
      <dc:date>2002-02-14T08:09:39Z</dc:date>
    </item>
  </channel>
</rss>

