Hi
i have a file and i want to do some controls on it, for example :
1. column number 3 must be <> 0
2. lenght of column number 4 must be = 12
3. column number 2 must exist on a table on database informix
file whith a pipe delimiter :
2002|x|125464|000012356984|1000.00|500.00|500.00|
2002|y|0|125489632158|5000.00|1000.00|4000.00|
2002|z|126589|12548|2000.00|500.00|1500.00|
2002|a|256894|000000215698|1000.00|200.00|800.00|
2002|y|125698|000012349658|200.00|10.00|190.00|
table on database contains :
x
y
z
the results will be 2 files :
file 1 contains : (good records)
2002|x|125464|000012356984|1000.00|500.00|500.00|
2002|y|125698|000012349658|200.00|10.00|190.00|
file 2 contains : (bad records)
2002|y|0|125489632158|5000.00|1000.00|4000.00|
2002|z|126589|12548|2000.00|500.00|1500.00|
2002|a|256894|000000215698|1000.00|200.00|800.00|
thanks a lot.
i have a file and i want to do some controls on it, for example :
1. column number 3 must be <> 0
2. lenght of column number 4 must be = 12
3. column number 2 must exist on a table on database informix
file whith a pipe delimiter :
2002|x|125464|000012356984|1000.00|500.00|500.00|
2002|y|0|125489632158|5000.00|1000.00|4000.00|
2002|z|126589|12548|2000.00|500.00|1500.00|
2002|a|256894|000000215698|1000.00|200.00|800.00|
2002|y|125698|000012349658|200.00|10.00|190.00|
table on database contains :
x
y
z
the results will be 2 files :
file 1 contains : (good records)
2002|x|125464|000012356984|1000.00|500.00|500.00|
2002|y|125698|000012349658|200.00|10.00|190.00|
file 2 contains : (bad records)
2002|y|0|125489632158|5000.00|1000.00|4000.00|
2002|z|126589|12548|2000.00|500.00|1500.00|
2002|a|256894|000000215698|1000.00|200.00|800.00|
thanks a lot.