Hi Julie,
I think you have to define a new HRL that’s made up out of a repetition of your VRL. Next you need to get your VRL file as ‘single’ so all VRL records are seen as one message: the HRL.
On iterating the HRL: I would search the archive for that. I’ve already posted some answers on this subject there, like this:
I have made several HRL’s, so I’ll try to explain how I did it.
I have a message, consisting of a header-line and one or more text-lines.
The content of the header is completely different from the text, so I
created a 2 FRL’s: msg_header.frl and msg_text.frl. Every text-line will
start with the string ‘TXT’; this is the segmentname.
Then I created an HRL, which looks like this:
Segment 1
========
Name: header
File name: msg_header.frl
Repeat options: No Repeat
Segment 2
========
Name: text
File name: msg_text.frl
Repeat options: Repeat while
Field: text.segmentname
Value: TXT
It took me a while before I figured out that in the fieldname of the
repeating field, you need to specify
‘.‘ as the field.
Hope this helps!
Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands