input file:
POH,val1,val2,20070122
POL,val1,val2,val3
POL,val1,val2,val3
POH,val1,val2,20070205
POL,val1,val2,val3
POL,val1,val2,val3
output file should look like this: (the date should be copied to every lines that belong to that header)
POH,val1,val2
POL,val1,val2,val3,20070122
POL,val1,val2,val3,20070122
POH,val1,val2
POL,val1,val2,val3,20070205
POL,val1,val2,val3,20070205
I used looping functoid and test result is:
POH,val1,val2
POL,val1,val2,val3,20070122
POL,val1,val2,val3,20070122
POH,val1,val2,20070122,20070205
POL,val1,val2,val3,20070122
POL,val1,val2,val3,20070122
Seems the date in the first header is copied to all the rest Header and Lines….Can map cope with this case, or i have to use orchestration, then how to use xpath to tell if two element belong to a same level….
Appreciate for any information.