Page 1 of 1

Truncation while getting message from MQ series

PostPosted: Fri Jan 08, 2010 1:33 pm
by jishamary
Hi,

I have a queue which will be feeding data to 2 applications. One application wants to get a new field data also now while the other application doesn't need this field. We are planning to add the field at the end of the copybook so that the field will be truncated for the second application. Will this approach work. What excatly is stored in MQGMO-ACCEPT-TRUNCATED-MSG variable. You have any reference material for the MQ variable details.
Please suggest.

Thanks In Advance,
Jisha

Re: Truncation while getting message from MQ series

PostPosted: Sun Jan 10, 2010 11:08 pm
by jishamary
Hi,
Could you please reply to my doubt ?

Awaiting your response.

Thanks,
Jisha

Re: Truncation while getting message from MQ series

PostPosted: Mon Jan 11, 2010 11:32 am
by dick scherrer
Hello,

Possibly, someone who "does MQ" will see this topic and reply.

Will this approach work.
Hopefully, you have run some experiments by now. . .

Peresonally, i'd make a new copybook for the new requirement rather than merely being lazy and leaving something confusing for others to deal with. . . fwiw.

This has nothing to do with mq but rather with creating things that are more maintainable.

Re: Truncation while getting message from MQ series

PostPosted: Tue Jan 12, 2010 12:11 pm
by jishamary
Hi,
Thanks for the reply. The situation is like another application is receiving the data and they don't want to make any modifications at their end. So we have thought of this data truncation possibilty.

Thanks,
Jisha

Re: Truncation while getting message from MQ series

PostPosted: Wed Jan 13, 2010 12:00 am
by dick scherrer
Hello,

Peresonally, i make sure one or the other was changed to be consistent. I'm sure "they" didn't want the new format :)

If there are to be 2 formats, i'd suggest 2 copybooks and probably 2 different queues.

Trying to "sneak around" things like this causes problems later more often than not.

fwiw. . .

Re: Truncation while getting message from MQ series

PostPosted: Wed Jan 13, 2010 11:40 am
by jishamary
Thanks for the reply. We are trying to include new copybooks for the new structure now.

Thanks,
Jisha

Re: Truncation while getting message from MQ series

PostPosted: Thu Jan 14, 2010 1:03 am
by dick scherrer
You're welcome - good luck :)

d