Vsam status and file return code 02.

Community Help: Vsam return code 02 - File status code lookup and help

Share your own experience     View front page

The file status code 2 is returned when the file i-o result was that a duplicate key was found. This means on a cobol read statement the key was the same as the next key within the current key of reference, or if writing a new file record then the new key created a duplicate file row.