Requirement:
If the 3rd position is Zero, insert 2 zeroes more at 4 and 5th position
If the 3rd position is not Zero, insert 2 spaces at 4 and 5th position
If the 6th position is Zero, insert 2 zeroes more at 7 and 8th position
If the 6th position is not Zero, insert 2 spaces at 7 and 8th position
Thus the above record value in output should be
Code:
AA000BBZ CC0DD
I have written the following to test, but its not working. I am getting following output
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
You need to consult the manual.
There you will discover that once one IFTHEN=(WHEN=(logical-expression is satisfied, no more more are tested for that record. You will also discover there is a way to modify this behaviour, HIT=NEXT.