Yep .... when it is a really odd problem, it is usually something stupid like that.
Rich
________________________________
On 5/9/2022 11:23 AM, paultherrien@xxxxxxxxxxxxxxxxxx<mailto:paultherrien@xxxxxxxxxxxxxxxxxx> wrote:
Is that a typo, *APIERR?
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx><mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Rich
Loeber
Sent: Monday, May 9, 2022 10:55 AM
To: midrange-l@xxxxxxxxxxxxxxxxxx<mailto:midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Accessing API Error Code in QRCVDTAQ API
Sure ...
DCL VAR(&DQNAME) TYPE(*CHAR) LEN(10) +
VALUE(TESTDQ)
DCL VAR(&QLIBR) TYPE(*CHAR) LEN(10) +
VALUE('TSTLIB')
DCL VAR(&FLDLEN) TYPE(*DEC) LEN(5 0)
DCL VAR(&FIELD) TYPE(*CHAR) LEN(20) VALUE(' ')
DCL VAR(&SECONDS) TYPE(*DEC) LEN(5 0) VALUE(10)
DCL VAR(&APIK6) TYPE(*CHAR) LEN(2)
DCL VAR(&APIK7) TYPE(*DEC) LEN(3 0) VALUE(0)
DCL VAR(&APIK8) TYPE(*CHAR) LEN(10)
DCL VAR(&APIK9) TYPE(*DEC) LEN(3 0) VALUE(0)
DCL VAR(&APIK10) TYPE(*CHAR) LEN(10)
DCL VAR(&APIOPT) TYPE(*CHAR) LEN(10) VALUE('*YES')
DCL VAR(&APILEN) TYPE(*DEC) LEN(5 0) VALUE(50)
DCL VAR(&APIERR) TYPE(*CHAR) LEN(50)
DCL VAR(&APIK14) TYPE(*CHAR) LEN(10) VALUE('*SEC')
CALL PGM(QRCVDTAQ) PARM(&DQNAME &QLIBR &FLDLEN +
&FIELD &SECONDS &APIK6 &APIK7 &APIK8 +
&APIK9 &APIK10 &APIOPT &APILEN *APIERR +
&APIK14)
Rich
________________________________
On 5/9/2022 10:43 AM, mlazarus wrote:
Rich,
Can you post your prototype, the field definitions and call?
-mark
On 5/9/2022 10:25 AM, Rich Loeber wrote:
I've been using this API for years, but a situation has come up where I need
to watch for errors happening in the API call when called from a CLLE
program. I've reviewed the documentation at length. I'm pretty certain
that I have the parameters right and the call to the API does go into a
timed wait (10 seconds), but when I try to force an error (like starting the
call when the data queue does not exist), there is no error code returned.
The entire API error code field is blank and it loops back to try and read
the data queue again.
Any suggestions where I can look. The idea of optional parameter groups is
confusing. I've coded the optional group 1 along with optional group 2, but
the settings in group 1 are all set to blanks and zeros.
When I tried just optional group 2, the OS did not like the number of
parameters passed on the call to the API.
Rich Loeber
Kisco Systems
https://www.kisco.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx> To subscribe,
unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx> for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.