i have three input files
1) infile containes following records
aaaaa
bbbbb
ccccc
2)input file containes following records
ddddd
eeeee
fffff
3)input file containes following records
ggggg
hh ...
i have two input files
file 1 contains following records
111111A20101008
111111S20101008
222222S20101008
333333A20101010
333333U20101010
333333S20101010
444444A20101010
444444U20101010
5555 ...