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 <firstname.lastname@example.org> 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: email@example.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: firstname.lastname@example.org +---
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.