IBM0568S
ONCODE=oncode-value The assigned EVENT variable was already in use with a DISPLAY statement.

Explanation

The event variable specified as the argument of the COMPLETION built-in function, or used as the target in an assignment, was still associated with a DISPLAY statement.
DCL A CHAR,
COMPLETION BUILTIN;
DISPLAY('MESSAGE TO OPERATOR')
REPLY(A) EVENT(E);
COMPLETION(E)='1'B;
ONCODEs associated with this message are:
  • 3904—event variable as argument to the COMPLETION built-in function
  • 3907—event variable is active

System action

The ERROR condition is raised.

Programmer response

Modify the program so that the event variable used as the target in the assignment or as the argument of the COMPLETION pseudovariable is not the same event variable associated with the DISPLAY statement. Or include a WAIT statement to prevent this statement from running until the active event is complete.

Symbolic Feedback Code

IBM0HO