× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

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.