While creating AIX i gave NONUNIQUE option as well as in file declaration in cobol i gave WITH DUPLICATES for alternate key. but while reading the file with alternate key its showing file status is 02... (Duplicate Key)
The 02 is explained in the reference manual as:
This file status value applies only to indexed files with alternate keys that allow duplicates.
The input-output statement was successfully executed, but a duplicate key was detected. For a READ statement, the key value for the current key of reference was equal to the value of the same key in the next record within the current key of reference. For a REWRITE or WRITE statement, the record just written created a duplicate key value for at least one alternate record key for which duplicates are allowed.