Thanks Gustavo. I have been debugging the program and I see where the check is failing in the "check' of the validation, hence I get the error, but it is hitting the user exit no matter what.
I changed my prereq to be SYST-UNAME = 'agsgw2tyg22wgh2w'
and it still reaches the breakpoint. This shows that the user exit isn't correctly written right? it should only pass to the user exit when the condition of the prereq is true.
Agree? what changes to I make to my exit so that values pass through it only when the prereq is met.