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



Hello Simon,
I suspected it. Many thanks for your verification.
Kind regards,
Werner Noll
-----Ursprüngliche Nachricht-----
Von: Simon Coulter [mailto:shc@flybynight.com.au]
Gesendet: Montag, 5. August 2002 14:50
An: rpg400-l@midrange.com
Betreff: Re: Additional Error Specs from C-Proc. 'system'



Hello Werner,

You wrote:
>In case of an error I just can get back the message ID.
>As I'm not familar with the C language I wonder if (and how) it would be
>possible to get back more error message informations (e.g. message data,
>message text, message file, message file library) in this procedure.

You can't.  system() removes the (any? all?) error messages and simply
returns an integer result.  That's how system works on other platforms.
Welcome to cross-platform, lowest common denominator crap!  On the AS/400
it has been extended to set _EXCP_MSGID to the error message ID.

If you want proper message control you will have to use an AS/400 method:
QCMD or QCAPCMD.

Regards,
Simon Coulter.
--------------------------------------------------------------------
   FlyByNight Software         AS/400 Technical Specialists
   http://www.flybynight.com.au/

   Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
   Fax:   +61 3 9419 0175   mailto: shc@flybynight.com.au   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



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.