Addition of an row
Posted: Tue Aug 23, 2011 8:27 pm
Hi,
I have to add an extra row in the output file for every employee with the following calculation from the input file.
I/P file:
A B C D
2011;40S0;12.50,123456
2011;50S0;12.45;123456
2011;40FR;13.56;123456; etc...
Now each and every employee with the values (40S0 and 50S0) the values of C column should be added and subtracted from the C column with the value (40FR)
i.e Newrow (new row) = 12.50 +12.45 - 13.56.
kindly advice on the above scenario.
thanks,
JJ
I have to add an extra row in the output file for every employee with the following calculation from the input file.
I/P file:
A B C D
2011;40S0;12.50,123456
2011;50S0;12.45;123456
2011;40FR;13.56;123456; etc...
Now each and every employee with the values (40S0 and 50S0) the values of C column should be added and subtracted from the C column with the value (40FR)
i.e Newrow (new row) = 12.50 +12.45 - 13.56.
kindly advice on the above scenario.
thanks,
JJ