× 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.



Pascal Bellerose wrote:
> ...
> If the user entered Option 2, I must show format "EC02WS".  So @ECRAN is 
> changed from 01 to 02.  But then I call "QRCVDTAQ" to retrieve the key values 
> so I can fill "EC02WS".  During that call, @ECRAN is set back to 01 wihtout 
> any reason.
> I know this behavior is not supposed to be.  I just don't why it is now.
> ...

The receiver parameter for QRCVDTAQ has to be at least as long as the
maximum entry length of the data queue. (MAXLEN parameter on the CRTDTAQ
command.)

QRCVDTAQ has a length parameter (third or fifth parameter) but that's
not for telling the API how long your buffer is, it's for the API to
tell you how long the entry is.  (There's another parameter way down in
the optional parameters where you can tell the API how long your
receiver is.)


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.