Truncation while getting message from MQ series



Support for MQSeries and Websphere Message Oriented Middleware communication systems for z/OS

Truncation while getting message from MQ series

Postby jishamary » Fri Jan 08, 2010 1:33 pm

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
jishamary
 
Posts: 7
Joined: Mon May 11, 2009 3:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Truncation while getting message from MQ series

Postby jishamary » Sun Jan 10, 2010 11:08 pm

Hi,
Could you please reply to my doubt ?

Awaiting your response.

Thanks,
Jisha
jishamary
 
Posts: 7
Joined: Mon May 11, 2009 3:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Truncation while getting message from MQ series

Postby dick scherrer » Mon Jan 11, 2010 11:32 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Truncation while getting message from MQ series

Postby jishamary » Tue Jan 12, 2010 12:11 pm

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
jishamary
 
Posts: 7
Joined: Mon May 11, 2009 3:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Truncation while getting message from MQ series

Postby dick scherrer » Wed Jan 13, 2010 12:00 am

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. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Truncation while getting message from MQ series

Postby jishamary » Wed Jan 13, 2010 11:40 am

Thanks for the reply. We are trying to include new copybooks for the new structure now.

Thanks,
Jisha
jishamary
 
Posts: 7
Joined: Mon May 11, 2009 3:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Truncation while getting message from MQ series

Postby dick scherrer » Thu Jan 14, 2010 1:03 am

You're welcome - good luck :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to WebSphere MQ

 


  • Related topics
    Replies
    Views
    Last post