apiyan Beginner
Joined: 16 May 2009 Posts: 9 Topics: 5
|
Posted: Sun May 17, 2009 12:47 am Post subject: More than one field match in EZT |
|
|
I have a input file as below:
input file: FB 300
Code: |
F1 F2 F3 F4 F1 F2 F3 F4
451 MIK B1 001 389 MIK C2 987
973 BOL C8 002 973 VIO L7 369
024 ADAM P8 008 807 OWEN P8 401
|
I am looking for output file as
Output file:
Code: |
F1 F2 F3 F4 F1 F2 F3 F4 MF1 MF2 MF3
451 MIK B1 001 389 MIK C2 987 N Y N
973 BOL C8 002 973 VIO L7 369 Y N N
024 ADAM P8 008 807 OWEN P8 401 N N Y
|
(MF1 , MF2 & MF3 are Flag fields of length 1 byte)
I want to read the three fields (F1, F2 & F3) out of four fields from the input file, and if its matched/Same , i want to write it in a output file with a new field called MF1, MF2 & MF3 which is called flag field,
If matched/Same , i want to write as Y
If not matched/not same , i want to write as N
I am expecting output exactly same as above.
Can anyone please help me?!
Thanks in advance |
|