Now it doesn't look incorrect but the issue it creates for me is when a match occurs with LOOKUP XIDX is loaded with the matching index value but this does not occur with %LOOKUP because it loads the index value as its return result.
I would ask that this conversion be changed to become two lines.
When I converted some / most look-ups, I noticed a problem created by IBM in the RPGLE language.
Before.
After
Now it doesn't look incorrect but the issue it creates for me is when a match occurs with LOOKUP XIDX is loaded with the matching index value but this does not occur with %LOOKUP because it loads the index value as its return result.
I would ask that this conversion be changed to become two lines.
These two lines are more correct in regards to the original use of LOOKUP.