IBM0564S
ONCODE=oncode-value The EVENT variable being assigned was already in use with file file-name.

Explanation

An attempt was made to assign a value to an event variable while it was still associated with an input/output operation.
DCL X FILE RECORD INPUT UNBUFFERED
ENV(BLKSIZE(80) RECSIZE(80) F);
DCL Y CHAR(80);
DCL (Z,Z1) EVENT;
READ FILE(X) INTO(Y) EVENT(Z);
Z = Z1;

The ONCODE associated with this message is 3906.

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 an input/output operation. Alternatively, include a WAIT statement to prevent this statement from running until the active event is complete.

Symbolic Feedback Code

IBM0HK