|
Use an indicator in the LO position of the CALL to QCMDEXC. This is just as good as a MONMSG MSGID(CPF0000). At least it's worked in my cases. In other cases where I'm doing a CHKOBJ or something that I will do a lot, I make a service program out of it. So something like: C eval GoodObj = #Chkobj(ObjLib:Obj:ObjType) * C if (GoodObj = 'Y') * blah blah C else * blah blah C endif (note: These could be combined into one statement, I know, but just for readablility.) Brad > -----Original Message----- > From: Colin Williams [mailto:Williamsc@technocrats.co.uk] > Sent: Monday, March 15, 1999 10:47 AM > To: 'MIDRANGE-L@midrange.com' > Subject: RE: RPG/COBOL with embedded CL > Importance: High > > > 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 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.