|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
CWF-XML coversion with REDEFINES apearing multiple times. |
« View previous topic :: View next topic » |
Author |
Message
|
Ajju. |
Posted: Fri Dec 27, 2002 2:01 pm Post subject: CWF-XML coversion with REDEFINES apearing multiple times. |
|
|
 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 |
|
 |
parthiba_s |
Posted: Sat Dec 28, 2002 8:24 pm Post subject: Select Repeat as Yes |
|
|
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 |
|
 |
Ajju. |
Posted: Mon Dec 30, 2002 12:31 pm Post subject: |
|
|
 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 |
|
 |
kirani |
Posted: Mon Dec 30, 2002 9:36 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|