This solution will work because global variable is visible on all stack levels (local variable is not).
But you'd use process private global varialble ^||pasp("unitcode") instead of ^pasp("unitCode") which is visible from all processes and you can have collisons in multi user environment.
- Log in to post comments

.png)