Posted: Tue Nov 05, 2002 2:45 pm Post subject: MRM: Repeating fields
Novice
Joined: 01 Jul 2002 Posts: 13
I'm attempting to use the CWF attribute 'Repeat Count Value of' within an MRM message.
The aim of this is to use the following COBOL copybook:
01 INPUT-RECORD.
03 LINE-ITEM.
05 LINE-ITEM-COUNT PIC 99.
05 LINE-ITEMS OCCURS 0 TO 10 TIMES DEPENDING ON LINE-ITEM-COUNT.
07 FIELD1 PIC X(10).
07 FIELD2 PIC X(10).
To produce a message where the 'LINE-ITEM-COUNT' field comes -after- the LINE-ITEMS structure. eg:
aaaaaaaaaabbbbbbbbbbaaaaaaaaaabbbbbbbbbb02
However, MRM removes the 'Repeat Count Value of' attribute whenever I reorder the top-level compound type (LINE-ITEM).
Is there any way around this?
Does OCCURS DEPENDING ON have to be used to take advantage of the 'Repeat Count Value of' attribute within CWF?
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