I wrote a job using ICETOOL's SPLICE.
the logic is
SPLICE FROM(IN) TO(OUT) ON(1,7,CH) WITHALL WITH(12,1)
IN file has following records
pol0000 0001xxxxname1 ####
pol0000 0002yyyygame11
pol0000 0002zzzzgame12
pol0001 0001aaaaname2 ****
pol0001 0002bbbbgame21
Desired OUT file records are
pol0000 0002yyyyname1
pol0000 0002zzzzname1
pol0001 0002bbbbname2
I'm getting the following records in OUT file
pol0000 0002xxxxname1 ####
pol0000 0002xxxxname1 ####
pol0001 0002aaaaname2 ****
Some rules:
1)only records having 2 at position 12 must retrieve.
2)only name values(having 1 at position 12) should replace game values(having 2 at position 12). remaining must not be replaced.