Hi,
I am using ansix12 x4010 std tree as input. DTP segment occurs (0:10) times in HD loop.
Input File has:-
DTP*301*D8*20010101**
DTP*348*D8*20020202**
DTP*303*D8*20030303**
Business says that i need to map 4th element of the DTP segment (date part) , if second element is 303. If 303 is not there then i need to do the mapping from DTP*348.
i have tried few cobinations using IF,Lookup functions, but could not find the result especially in above case, where both DTP*348 & DTP*303 are there in the file and DTP*348 occures before DTP*303.
It always maps the DTP*348 first in this case.
Regards,
Vibhav Shah
Regards,
Vibhav1008
I am using ansix12 x4010 std tree as input. DTP segment occurs (0:10) times in HD loop.
Input File has:-
DTP*301*D8*20010101**
DTP*348*D8*20020202**
DTP*303*D8*20030303**
Business says that i need to map 4th element of the DTP segment (date part) , if second element is 303. If 303 is not there then i need to do the mapping from DTP*348.
i have tried few cobinations using IF,Lookup functions, but could not find the result especially in above case, where both DTP*348 & DTP*303 are there in the file and DTP*348 occures before DTP*303.
It always maps the DTP*348 first in this case.
Regards,
Vibhav Shah
Regards,
Vibhav1008