|
Ah, nice catch. So as for the code:
<<SNIP and edit>>
EOFAUT:
GRTOBJAUT OBJ(&LIB/&ATFILE) OBJTYPE(&TYPE) +
USER(*PUBLIC) AUT(*EXCLUDE) /* This works fine */
NOCHG:
CHKOBJ &QUELIB/&QUENAME *DTAQ /* This works fine */
MONMSG CPF9801 EXEC(GOTO EXIT) /* no *EXCP; cont. to CALL */
CALL QSNDDTAQ (&QUENAME &QUELIB &DTALEN &DATA)
/* Above failed msgCPF9801 F/QSNDDTAQ x/03B0 T/thisPgm */
Notice, the variable names are the same for both. Guess that's why
the CHKOBJ was coded just before the call to the API.
On 19 Jun 2012 15:18, Robert Houts wrote:
Notice that in the job log the message CPF9801 is being sent by
program QSNDDTAQ, so what seems to be happening is that whatever
value is in &NAME is not the same value that is being passed on the
call to QSNDDTAQ. As you are not showing us these parameters, I can
only guess. But it is clear that the error is being issued from the
API and not the CHKOBJ.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.