ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Cobol redefines, mapping node or ESQL ?

Post new topic  Reply to topic
 Cobol redefines, mapping node or ESQL ? « View previous topic :: View next topic » 
Author Message
KIT_INC
PostPosted: Mon May 28, 2012 7:17 pm    Post subject: Cobol redefines, mapping node or ESQL ? Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

We have big message (5K) described by a COBOL copy book with a number of redefines. As part of our planning, we want to see if we can use mapping node instead of ESQL. We have limited experience with mapping node and like to find out if mapping node can be use to handle the redefines. We can only determine which is the redefined structure to use by looking at the content of certain fields of the incomimg message. We search the info center for information with not much luck ( key word used was COBOL redefine mapping node). Can anyone provide pointers to any reading materials on this topic.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon May 28, 2012 11:21 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
like to find out if mapping node can be use to handle the redefines
I don't see why not.
Quote:
We can only determine which is the redefined structure to use by looking at the content of certain fields of the incomimg message.
Sounds like a conditional mapping. I'm pretty sure that the v7 mapper can do that, and I'm absolutely certain that the v8 mapper can.

However, if you're on v8 then you would be better off putting the rules into the DFDL model. DFDL allows you to guide the parsing of the data using 'discriminator' rules that inspect previously-parsed data. Then your map would be simpler, and would only have to concern itself with the logical structure of the data.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue May 29, 2012 1:54 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Even at v7, the MRM can be used to resolve, at least for certain kinds of cases, a COBOL redefine. particularly I'm thinking of cases where you think you have a fixed-length record, but on inspection you actually have tagged data - i.e. where the first field in the redefine is a fixed constant value for each branch.

There are a lot more of these kinds of things than people expect. You can then adjust the model to remove the first record, and use it's value as the TAG and use the TAG to resolve a choice that represents the redefine paths.

Again, then you only deal with the logical structure of the data in your mapping.

If you are going to use Mapping node in v7 for this kind of thing, you should expect to have lots of submaps - one for each redefine path at a minimum.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Cobol redefines, mapping node or ESQL ?
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.