Code lines in XREF listing are wrong
The code lines in the XREF file that is generated by the compiler contains wrong code lines. Code sample without IF..THEN statement gives correct behavior. The code line for 'FIND FIRST benefits' in the XREF is 8. This is correct. Code sample with IF..THEN statement gives wrong behavior. The code line for 'FIND FIRST benefits' in the XREF is 3. This is wrong. There is not even an active code line in line 3.