|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
AS/400 MQ max record length question |
« View previous topic :: View next topic » |
Author |
Message
|
CarlGalgano |
Posted: Sat Mar 20, 2004 5:44 am Post subject: AS/400 MQ max record length question |
|
|
Newbie
Joined: 20 Mar 2004 Posts: 1
|
HI, total newbie to MQ, so be easy on me.
Here is the environment I am working in:
AS400 running V3.7 (I know it is old, but it is what I have right now)
I need to be able to send and receive EDI transactions with MQ upto the 4MB limit, although I seriously doubt any of the message would ever be greater than 1 MB.
I have an RPG compiler available to me (but can possibly get a C or CBL compiler if that will solve my problem).
I need to be able to read the contents of a file (multiple 80 byte records) and format a single MQ message and place it on the queue (I also need to be able to do the same when doing an MQGET). I am running into a array limitation in RPG of 9999 and records size of 32K, so I am assuming that is a limitation of the compiler. Does C or COBOL have the same limitations?
I would like to have a function that I can call from another routine that will take in a file name/library/member and the QUEUE, and either build an entire message from all the records in the file, or received the MQ queue and parse it into 80 byte records. I have the programming skills to do this in RPG, but not any other language.
Can first anyone confirm that C or COBOL can do this?
Thanks in advance.
Carl |
|
Back to top |
|
 |
JLRowe |
Posted: Mon Mar 22, 2004 8:42 am Post subject: |
|
|
 Yatiri
Joined: 25 May 2002 Posts: 664 Location: South East London
|
Use the ILE compiler, then you can allocate a buffer of memory (just like a C malloc() ) with the ALLOC op-code. ALLOC allows you to grab upto 16M of memory. You can base a datastructure on a pointer and manipulate the data in the buffer this way with some pointer arithmetic.
I'm not sure how much of this applies to V3R7, the last time I did this was with V4R2. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|