× 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.


  • Subject: Re: Sockets programming in RPG-ILE
  • From: Jon.Paris@xxxxxxxxxx
  • Date: Wed, 10 Feb 1999 10:14:01 -0500

 >> As long as you're on this thread :-) may I ask about error handling in
the
mixed environment (AG QILE vs AG *DFTACTGRP)  I am calling this QILE pgm
from an OPM CL program.  I'm not going to get any nasty surprises, am I?

The majority of the problems in error handling arise when you are
repeatedly crossing the ILE/OPM boundary.  If you have a CL program in OPM
calling an ILE program, doing all of its work and then returning, you're
not likely to see a lot of problems.  If on the other hand the ILE program
represents a frequently called function so that you are back and forwards
all the time you have to be more cautious.  Even so, the major problem lies
with things like coding an error indictor on the RPG CALL and then not
doing anything with it.  The compiler considers that the indicator means
that the programmer wants to handle errors, so any error is "swallowed" by
setting the indicator and will never be seen unless the programmer uses the
indicator.  An OPM program would still have displayed the "Cancel Dump,
etc...." message.

As for other problems, if you do proper error handling you won't have much
of a problem - most difficulties arise with unhandled error behaving
differently.


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.