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 » General Discussion » mapping repeated fields

Post new topic  Reply to topic
 mapping repeated fields « View previous topic :: View next topic » 
Author Message
skediyal
PostPosted: Thu Nov 17, 2005 1:40 pm    Post subject: mapping repeated fields Reply with quote

Newbie

Joined: 02 Nov 2005
Posts: 7

Hi, I am trying to map incoming xml to cobol copybooks. I have created mapping file to accomplish this. The schema and copybook have repeated fields. I have created message defintion for schema and copybook. The schema and copy books looks like this.

XML Schema
---------
Customer
- Name
- ItemCnt
- Items occurs 0 ---10
- itemCd
- itemDesc

Copy Book
------------
01 Customer
05 Name PIC X(20)
05 ItemCnt PIC 9(2)
05 Items occurs 0 to 20 depending on ItemCnt
10 itemCd PIC X(8)
10 itemDesc PIC X(20)


Now when i drop both the message defintion file in the mapping file. The files are created with Source created with Items[] and Items[All] and target with Items[],Items[ALL],Items[1].

For Name and itemCnt fields i have create mapping using "create mapping" menu item. But for array how do create mapping. Which nodes should i use for mapping ([] or [ALL]?). I see option for "Create loop assignment mapping". Should i use this create mapping.

Again items list could be 0 or 10. Please help. Thanks in advance for help.

S
Back to top
View user's profile Send private message
EddieA
PostPosted: Thu Nov 17, 2005 2:26 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Hmmmm. This looks like a repeated post.
Don't do that.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
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 » General Discussion » mapping repeated fields
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.