Help me, I don’t understand
Your program is using DSPATR(PC)? on the marks field?
When screen is displayed, cursor is in the first position of the marks field. Is that OK?
What does the user do? Type one letter and press enter?
What should happen. Screen with typed letter is displayed but cursor is in the second position of the Marks fielld?