• Subject: Re: qcmdexc - problem
  • From: Boris Goldenberg <bpcsguru@xxxxxxxxx>
  • Date: Fri, 30 Jul 1999 05:30:26 -0700 (PDT)

Try putting an indicator in the Low position of the 'Call QCMDEXC' statement in
RPG.  An indicator will get turned on if the called program ends abnormally.
Not sure if this will help your situation, though.

The best solution is to use CL - just pass the appropriate parameters to it and
let it issue the CHGOBJOWN command and then use MONMSG to monitor for errors.

Regards,
Boris Goldenberg. 

--- Martin Lucas <martin@sacul.demon.co.uk> wrote:
> Can anyone advise me if there is a way to error trap a command in QCMDEXC. I
> know this is not a BPCS question but hope there is some help out there
> anyway.
> 
> My program goes like this:
> 
> I am building a subfile to display different owners of objects in a library.
> Should the user wish to change any owners that are not SSA for example to
> SSA, I build a command like this using an ARRAY,
> 
> CHGOBJOWN OBJ(xxx/xxx) OBJTYP (xxx) NEWOWN(xxxxxxxxxx) CUROWNAUT(*REVOKE)
> 
> where x is a varaible from a logical over a DSPOBJD outfile.
> 
> However should the user not have enough authority,  the moment the program
> crashes.
> 
> I want to exit with a message.
> 
> I know this could be done in CL but I want to do it this way if possible.
> (...Personal reasons)
> 
> *PSSR does not pick up the error after including the FIDS in the I spec.
> nor does IND 99 in the CALL
> 
> any takers...
> 
> 
> Martin Lucas
> 
> +---
> | This is the BPCS Users Mailing List!
> | To submit a new message, send your mail to BPCS-L@midrange.com.
> | To subscribe to this list send email to BPCS-L-SUB@midrange.com.
> | To unsubscribe from this list send email to BPCS-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner: dasmussen@aol.com
> +---
> 

_____________________________________________________________
Do You Yahoo!?
Free instant messaging and more at http://messenger.yahoo.com

+---
| This is the BPCS Users Mailing List!
| To submit a new message, send your mail to BPCS-L@midrange.com.
| To subscribe to this list send email to BPCS-L-SUB@midrange.com.
| To unsubscribe from this list send email to BPCS-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: dasmussen@aol.com
+---


This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 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 here. If you have questions about this, please contact [javascript protected email address].