× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Buck Calabro
Sent: Monday, April 07, 2003 3:23 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Hans


>But once I tried to use MONITOR, etc I could not find a
>way to throw an errno based error.  Rpg code can throw a
>msgid based exception using the message APIs, but MONITOR
>does not catch those on a msgid specified basis.
>( MONITOR catches them all as the same general
>exception based errno )

>You have a point.  But then again, RPG isn't C, and I didn't really expect
>RPG to use errno.  I'll have to tinker a bit more with MONITOR to see how
to
>throw my own exceptions in a more CL-ish way.

The errno seems to coincide with the number portion of the RPGxxxx messages.
I tried to send and RPGxxxx escape message up to my proc and monitor on that
errno.  But it did not work ( sad face )

fwiw, I dont think RPG should be like C.  I think you can make a good case
for a framework like language being easier to understand than free form
languages are.

Steve



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.