I don’t see any issue with the program code.
How are the fields defined on the record format? If they’re defined as I (Input) rather than B (Both input & output) that may be the source of your problem.
right, I agree on the possibility of an I instead of a B on your window fields.
I try to avoid being critical but, GOTO’s and Labels are not allowed in most IT standards.
These operations make code that is unreliable and hard to read.
Meh. Tags can be misused like anything else – there are times when the contortions required to avoid tags make for more illegible code.
I don’t think the code above is well structured.
Didn’t say it was.