Author |
Message
|
ckanair |
Posted: Mon Oct 13, 2003 8:11 pm Post subject: Repeating fields MRM |
|
|
Newbie
Joined: 13 Oct 2003 Posts: 2 Location: Bangalore
|
Hi,
I have a COBOL copybook that has repeating fields which I want to parse using an MRM layout. The repeating fields can have a minimum of 1 instance and maximum of 10 - there is no "DEPENDING ON" type variable. I would expect that WMQI 2.1 's Min Occurs and Max Occurs should allow me to parse a message with 1 occurence of the repeating structure till 10 occurences - but that does not seem to be the case. My MRM is always expecting 10 occurences, else it fails.
Any help would be really appreciated. _________________ Anu Nair
IBM MQSeries Specialist
IBM WMQI Specialist |
|
Back to top |
|
 |
JLRowe |
Posted: Tue Oct 14, 2003 12:58 am Post subject: |
|
|
 Yatiri
Joined: 25 May 2002 Posts: 664 Location: South East London
|
You can't do it without a 'DEPENDING ON' variable, as CWF needs to know how many occurences there are.
The only exception is if the repeating field is the last one in the message, in which case CWF keeps reading until the end of the message. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Oct 14, 2003 4:41 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
jlrowe wrote: |
You can't do it without a 'DEPENDING ON' variable, as CWF needs to know how many occurences there are. |
Unless you use TDS instead of CWF.
Then you can do variable unknown repeats, as long as your message has something that can be a delimiter. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
ckanair |
Posted: Tue Oct 14, 2003 5:57 am Post subject: Repeating MRM Fields |
|
|
Newbie
Joined: 13 Oct 2003 Posts: 2 Location: Bangalore
|
Thanks for the responses. _________________ Anu Nair
IBM MQSeries Specialist
IBM WMQI Specialist |
|
Back to top |
|
 |
rahdilarum |
Posted: Tue Oct 14, 2003 7:24 am Post subject: Missing Array Elements in Output Message |
|
|
Novice
Joined: 02 Mar 2002 Posts: 15 Location: Winston-Salem, NC
|
Make Sure that on CWF tab of the Array-Name, "repeat count" is specified.
Murali Behara
336-519-8508
[/img] |
|
Back to top |
|
 |
|