Hi, Can anyone tell me if I am using the wrong code for my replace statement?
REPLACE Salary WITH Salary + IIF(wtran.wr_trncde = "A001", WTRAN.wr_tempval + WTRAN.wr_permval, 0)
REPLACE Allowances WITH Allowances + IIF(wtran.wr_trncde = "A002"+"A007"+"A008"+"A012", WTRAN.wr_tempval + WTRAN.wr_permval, 0)
"A002"+"A007"+"A008"+"A012" is the part my program doesn't like.
"A002","A007","A008","A012" I have tried this way as well.
Can anyone help?
Kind regards,
Tom
REPLACE Salary WITH Salary + IIF(wtran.wr_trncde = "A001", WTRAN.wr_tempval + WTRAN.wr_permval, 0)
REPLACE Allowances WITH Allowances + IIF(wtran.wr_trncde = "A002"+"A007"+"A008"+"A012", WTRAN.wr_tempval + WTRAN.wr_permval, 0)
"A002"+"A007"+"A008"+"A012" is the part my program doesn't like.
"A002","A007","A008","A012" I have tried this way as well.
Can anyone help?
Kind regards,
Tom