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