Originally posted by John Hervatin
I have an input .csv file called
AB.csv with this content:
10,1,2
10,4,8
I want to convert this to an output .csv file that would combine information from the two input records, like this:
1,2,4,8
To do that, I tried the following:
A VRL called
AB.vrl with the following fields (all fields with their default values; and with the default Global Properties) :
Type
A
B
An HRL called
AB.hrl { AB: AB.vrl } While AB.Type = 10
Type
A
B
A VRL called
AB12.vrl for the output
A1
A2
B1
B2
An Xlate called
AB_to_AB12.xlt that uses AB.hrl as the input format and AB12.vrl as output, and a single Copy instruction with the assignments:
AB(0).A --> A1
AB(1).A --> A2
AB(0).B --> B1
AB(1).B --> B2
The four fields in the output record would then be expected to be 1,2,4,8
But the XLT test gives this with