× 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: system()
  • From: bmorris@xxxxxxxxxx
  • Date: Tue, 26 Sep 2000 15:16:48 -0400
  • Importance: Normal


>Date: Tue, 26 Sep 2000 08:47:35 -0500
>From: Klein Ron <ron.klein@brctsg.com>
>
>>Ron, use an error indicator on CALL, or (E) extender on CALL or
>>CALLP.
>>   C            callp(e)    qcmdexc (command : len)
>>   C            if          %error
>>   ... an error occurred
>>   C            endif
>
>    Barb, now that I know there is an error, is there a way to monitor
>it from within RPGLE, the same way a MONMSG works in CL. Something that
>will not kill my program but continue processing.

Ron, I don't understand your question.  The (e) or error indicator
IS the monitor.  Because of the (e) or error indicator, your program
continues after the call to QCMDEXC.  If you leave out the (e) or
error indicator, your program will crash (or go to the *PSSR).

These are basically the same:

  CL:  CRTLIB XXX
       MONMSG EXEC(DO)
             ... do something to handle the error ...
       ENDDO

  RPG: C        callp(e)     qcmdexc ('CRTLIB XXX' : 10)
       C        if           %error
       C          ... do something to handle the error ...
       C        endif


Barbara Morris

By the way, it's "Barbara", not "Barb".  "Barb": ewwwww.  (For
me that is - for someone else, I'm sure "Barb" is a fine name.)

"Surely you jest."
"Please don't call me Shirley."


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| 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.