IBM0162S
ONCODE=oncode-value The KEY condition was raised because the specified key was already in use in data set (FILE= or ONFILE= file-name).

Explanation

In the case of data set with INDEXED organization, an attempt was made to transmit a keyed record to a data set that already held a record with the same key. In the case of a data set with REGIONAL(1) or REGIONAL(2) organization that was being created sequentially, an attempt was made to transmit a record to a region that already contains a record. The ONCODE associated with this message is 52.

System action

The ERROR condition is raised.

Programmer response

Either check the validity of the data that is being processed before running the program or use the program to check the data. Use of the ONKEY built-in function in a KEY ON-unit can aid in identifying an erroneous key, correcting it, and allowing processing to continue normally.

Symbolic Feedback Code

IBM052