Originally posted by Bart VanLeeuwen
Hi,
I'm trying to create multiple messages from multiple rows in a flat file, the fields are all pipe delimited. The basic format of the file is:
01|...
02|...
02|...
02|...
01|...
02|...
01|...
02|...
... and so on...
A single 01 followed by one or many 02 record(s) will be one message.
I have created a 01Record.vrl and a 02Record.vrl to map out the fields. However I'm not sure how to properly define the HRL to get the multiple messages.
Currently my HRL is defined as follows:
{NAME Record01} {TYPE fmt} { FMT {
{ RECORD EKG_Extract_01Record.vrl }
{ RECORD_TYPE vrl }
}}
{NAME Record02} {TYPE fmt} { FMT {
{ RECORD EKG_Extract_02Record.vrl }
{ RECORD_TYPE vrl }
{ REPEATWHILE {
{
{ FIELD Record02.RecType }
{ VALUE 02 }
}
} }
}}
When I test one record there is data for the 1st VRL segment (Record01) but nothing for the 2nd VRL segment (Record02).
Looking at various posts, I got as far as I could. Any help would be appreciated.
Thanks,
Bart.