Re: cobol salary calculation
Posted: Wed Dec 28, 2011 2:49 pm
BillyBoyo wrote:if current-designation equal to previous-designation
move previous-designation to designation of next entry in table
move salary-value to salaray of next entry in table
move current-designation to previous-designation
move current-salary to salary-value
else
add current-salary to salary-value
Hi Billy,
Apologies if I am wrong but, I believe the logic which you have mentioned would start like this -
if current-designation not equal to previous-designation
move previous-designation to designation of next entry in table
move salary-value to salaray of next entry in table
Please let me know if that is not the case.
Thanks & Regards,
Nik