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 » CWF-XML coversion with REDEFINES apearing multiple times.

Post new topic  Reply to topic
 CWF-XML coversion with REDEFINES apearing multiple times. « View previous topic :: View next topic » 
Author Message
Ajju.
PostPosted: Fri Dec 27, 2002 2:01 pm    Post subject: CWF-XML coversion with REDEFINES apearing multiple times. Reply with quote

Voyager

Joined: 26 Jul 2002
Posts: 77

Hi folks,
I am developing a CWF to XML converter . now instead of importing a cobol copy book i created my message manually. now in copy book i had a bunch of fields which repeats 1 to 4 times. and my data is all fixedlength string like 11111111111112222.
now this last part 2222 may apear 1 time or 4 times like 11111111111112222222222222222

and accordingly i need to convert it to xml like
<root>
<first>1</first>
<second>1</second>
.
.
.
.
--this part has to apear 1 to 4 times in compliance to the input fixedlenth string
<last>
<a>2</a>
<b>2</b>
<c>2</c>
<d>2</d>
<last>
</root>


i created my messageset and message flow with compound elements for the repeating data with repeat-YES and min and max occurance to 1 and 4 respectively.

but this work fine for only one occurance of 2222 data but if the data gets multiple time like 22222222 then i get exception for data length more than what defined in message.

pl.advice,
Thanks in adv,
Ajju.
Back to top
View user's profile Send private message
parthiba_s
PostPosted: Sat Dec 28, 2002 8:24 pm    Post subject: Select Repeat as Yes Reply with quote

Novice

Joined: 12 Sep 2002
Posts: 20

Go to the message Set
Click on the Element you want to repeat
Go to the connection Tab where you have mentioned the min and Max ocurs
In the repeat drop down box select Yes



Try this it may help
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Ajju.
PostPosted: Mon Dec 30, 2002 12:31 pm    Post subject: Reply with quote

Voyager

Joined: 26 Jul 2002
Posts: 77

Thanks partibha,

I tried putting the repeat as YES and the count as min= 1 max= 4 and even looking at the previous posting in this context by Lung and kiran.

but i am not able to get through.

my input is a CWF cobol copybook format with a bunch of stuff repeating in it.

I also tried to by ESQL CARDINALITY("InputBody"."LAST"[]);

but i am getting only 1instead of getting it as 4.


thanks in adv.
ajju
Back to top
View user's profile Send private message
kirani
PostPosted: Mon Dec 30, 2002 9:36 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Hi Ajju,

In MRM-CWF your element can repeat,
1. Fixed number of times.
2. N times (similar to OCCURS DEPENDING ON clause in COBOL).

So there should be an integer element before LAST element, which says how many times this part occurs. If it occurs 4 times then it should hold integer value of 4.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » CWF-XML coversion with REDEFINES apearing multiple times.
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.