Iam executing a program which reads records from a GSAM input file and then issues a GHU call to see if it exists in the database, if the status is blanks then it issues a REPL call and updates the record. Otherwise isert it by giving an ISRT call. The problem is everytime we execute for all inputs we're getting a status code of NI immaterial of ISRT or REPL call. is there a way to resolve this? how tough is to rebuild the sec index ??? need help pls.
The retrun code NI will be coming for the below reasons.
"There is a duplicate segment in a unique secondary index. While IMS was inserting or replacing a source segment for a secondary index defined with a unique sequence field, the insertion of the secondary index segment was attempted but was unsuccessful because an index segment with the same key was found. One possible cause for a duplicate segment in the index is that the index DBD incorrectly specified a unique key value--secondary index only. A data management open error occurred when opening the index data set. ".
Hope the return code NI was not immaterial and also Hope the above reason helps your query.