You can check the equal indicator on the CALL opcode, that will tell you if
the call ended OK and at least your program can do some recovery.  Your HLL
program will not give a program message.
Carl
Carl Galgano
EDI Consulting Services, Inc.
540 Powder Springs Street
Suite C19
Marietta, GA  30064
770-422-2995
mailto: cgalgano@ediconsulting.com
http://www.ediconsulting.com
EDI, Communications and AS400 Technical Consulting

-----Original Message-----
From: Colin Williams <Williamsc@technocrats.co.uk>
To: 'MIDRANGE-L@midrange.com' <MIDRANGE-L@midrange.com>
Date: Monday, March 15, 1999 12:40 PM
Subject: RE: RPG/COBOL with embedded CL


>But the problem with QCMDEXC, is that you cannot do a MONMSG on any
>commands you run, so if an error occurs in the command, the calling HLL
>program falls over.
>
>The only problem with modules is that if you have to create an extra
>module for every CL type task you want to perform, you could end up with
>lots of modules/programs, when you only want to perform some very simple
>function, and I prefer to use as few programs/modules as possible, to
>keep object mangement simple!
>
>-----Original Message-----
>From: Dennis Lovelady [mailto:dennis@lovelady.com]
>Sent: Monday, March 15, 1999 2:46 PM
>To: MIDRANGE-L@midrange.com
>Subject: Re: RPG/COBOL with embedded CL
>
>
>Hi, Colin:
>
>>I have often thought, if IBM allowed CL program commands to be embedded
>>in their HLL's, they would make development a lot quicker, allowing
>>development of HLL programs without the overhead of having to wrap
>them
>>in a CL control program to perform any sort of housekeeping/error
>>capture.
>>Anyone else got any thoughts on this.
>
>You can do this.  The QCMDEXC program, callable from any HLL (or even
>from
>CL, but why would you?), can be used to execute CL commands anywhere
>within
>your program.  Also, with ILE, you can now create modules in CL that are
>callable from your other ILE HLL programs, making the task simpler yet.
>
>HTH
>--
>Dennis Lovelady                    Simpsonville, SC
>mail: dennis@lovelady.com
>URL:  http://lovelady.piedmont.net
>ICQ:  5734860
>--
>"Always live within your income, even if you have to borrow money to do
>so."
>        - Josh Billings
>
>
>+---
>| 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
>+---
>+---
>| 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
>+---

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