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 IndexWebSphere Message Broker (ACE) SupportConversion Mapping from WMB 6.1 to WMB 8.0 - Error when usin

Post new topicReply to topic
Conversion Mapping from WMB 6.1 to WMB 8.0 - Error when usin View previous topic :: View next topic
Author Message
petersonvz
PostPosted: Tue May 21, 2013 11:42 am Post subject: Conversion Mapping from WMB 6.1 to WMB 8.0 - Error when usin Reply with quote

Newbie

Joined: 09 May 2013
Posts: 7
Location: Curitiba, Brazil

Dear All

Please, I need help to resolve an error to Conversion Mappings (". Msgmap" for. "Map"). I'm doing a migration from WMB 6.1 to WMB 8.0.

The function "FOR" is used, in the WMB 6.1, when there is a repetition in a XML File, and each repetition in the XML record is linked to a particular type of register in a sequential file.

For Example:
I have the following sequential file:
-----------------------------------
00FileNameXXX2013-05-21 HEADER
1020130521000012013-05-21 DETAIL
1020130521000022013-05-20 DETAIL
1020130521000032013-05-19 DETAIL
-----------------------------------

--------------------------------------------------
COBOL RECORD DEFINITION (Just for demonstration):

01 FILE REGISTER PIC X(....)
05 RECORD-TYPE PIC X(0002)
01 HEADER-REG.
05 FILLER PIC X(0002)
05 FILE-NAME PIC X(....)
05 CREATION-DATE PIC X(....)
01 DETAIL-REG.
05 FILLER PIC X(0002)
05 OPERATION-NUMBER PIC X(....)
05 PAYMENT-DATE PIC X(....)
--------------------------------------------------

The first two positions indicates the record Type (In this case: 00 - Header and 10 - Detail)
The Header record contains information about the XML file (Ex: File name, Creation Date ...)
Each Detail Record indicates a repetition in XML Group "<GroupDetail>" (Operation Number, and payment Date)

After mapping, follows the XML file:

<?xml version="1.0" encoding="utf-8" ?>
<STCDOC xmlns:ast=>
<Header>
<FileName>FileNameXXX</FileName>
<CreationDate>2013-05-21</CreationDate>
</Header>
<Detail>
<ASTC004>
<Repetition>
<GroupDetail>
<OpNumber>2013052100001</OpNumber>
<PaymentDate>2013-05-20</PaymentDate>
</GroupDetail>
<GroupDetail>
<OpNumber>2013052100001</OpNumber>
<PaymentDate>2013-05-20</PaymentDate>
</GroupDetail>
</Repetition>
</ASTC004>
</Detail>
</ast:STCDOC>


In this case the Message Broker Mapping (Version 6.1), uses the function "FOR" about the records that are of type "10" in the Sequential file, and while exists these types of record, the Broker processes them until the end of file, generating repetitions in XML file <GroupDetail>.

Mapping (From Message Broker 6.1):

....
Map Script | Value
.....

GroupDetail
FOR | $source/DETAIL-REG/Data
OperationNumber | $source/DETAIL-REG/Data/REG10/OPERATION-NUMBER
PaymentDate | $source/DETAIL-REG/Data/REG10/PAYMENT-DATE

.....

After conversion, using the Conversion Tool in the Message Broker Toolkit 8.0.0: “Convert Message Map from .msgmap to .map”.
Generated the following error message:
- A map transform has more than one output. Remove all except one output from de transform to resolve the problem.
- The For each transformation must have one, and only one, output.


I Can't Find the Funcition "FOR" used in version 6.1, in Message Broker Toolkit 8.0.0.0.
* This means that this function is no longer available?
* Is there any other feature or function to be used to resolve this issue?
* What changes are needed in this case?
* How to transform many records in a sequential file in groups in the XML File, using WMB8.0?

Thank you !!!

Best Regards,
Peterson Zambiassi
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed May 22, 2013 1:30 am Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

You need to upgrade to v8.0.0.2.

The ForEach transform in v8.0.0.1 does not support this scenario, but support was added in v8.0.0.2. Also, the map migration utility was significantly enhanced in v8.0.0.2.
Back to top
View user's profile Send private message
petersonvz
PostPosted: Wed May 22, 2013 12:15 pm Post subject: Reply with quote

Newbie

Joined: 09 May 2013
Posts: 7
Location: Curitiba, Brazil

Hello kimbert !!

I upgraded the version of the Toolkit today!
It's really works now!


Thanks for your help
Peterson
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker (ACE) SupportConversion Mapping from WMB 6.1 to WMB 8.0 - Error when usin
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.