Powered by Invision Power Board


  Reply to this topicStart new topic

> [AS400] ILERPG MQGET and length > 65535
jdavid
Ecrit le : Dec 16 2008, 12:40 PM
Quote Post


Membre
**

Groupe : Members2
Messages : 7
Membre n° : 685
Inscrit le : 12-August 2008



Hello,

I try to do an MQGET in ILERPG, but the length of the message is > 65535.

MQGET return error code 2080 :
On an MQGET call, the message length was too large to fit into the supplied buffer. The MQGMO_ACCEPT_TRUNCATED_MSG option was not specified, so the message has not been removed from the queue. If this was a browse operation, the browse cursor remains wher
Corrective action: Supply a buffer that is at least as large as DataLength, or specify MQGMO_ACCEPT_TRUNCATED_MSG if not all of the message data is required.

I don't want to truncate the message, I want to retrieve all datas.

The max length for a var in ILERPG is 65535. How can I handle this case ?

Thanks in advance.

Jérôme (France)

Exemple of my program :

* Handle connection
* Connection handle
D HCONN S 10I 0
* Options
D OPTS S 10I 0
* Object handle
D HOBJ S 10I 0
* Completion codes
D OCODE S 10I 0
D CCODE S 10I 0
* Reason
D REASON S 10I 0
* Buffer length
D BUFLEN S 10I 0 inz(65535)
* Message length
D MSGLEN S 10I 0
* Buffer
D MSGLEN S 10I 0
* Buffer
D BUFFER s 65535
* Buffer pointer
D BUFPTR S * INZ (%ADDR(BUFFER))


CALLP MQGET(HCONN:HOBJ:MQMD:MQGMO:BUFLEN:
BUFPTR:MSGLEN:CCODE:REASON)


--------------------
Jérôme David
Vogel France Group SKF

Environnement MQ sur IBM-i5 developpement trigger et prog PUT et GET en ILE-RPG
PMEmail Poster
Top

Topic Options Reply to this topicStart new topic

 



[ Script Execution time: 0.0822 ]   [ 10 queries used ]   [ GZIP activé ]