|
You could call QCMDEXC to execute the CHKOBJ command. If you prototype QCMDEXE and call with CALLP(E), you can use to %ERROR to determine if the if the command ran OK. If CHKOBJ does not find an object it returns an error message CPF9801. Other error messages are returned if you are not authorised to an object. Check %ERROR, then find the error message details in the Program Status Data Structure. This should provide you with all the information you need. In short - if object exists, no error message, %ERROR ='0'. If object does not exist, error message details in PgmDS and %ERROR = '1'. Syd Nicholson
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.