Difference between file status codes 02 and 22.... since both are for duplicate key detection.

Answer Posted / azharuddinsyed

Yes, both are "DUPLICATE KEY" condition. But, the differences are

02 is Duplicate key condition during read/write/rewrite of indexed files only
where as
22 is duplicate key condition during write/rewrite of indexed files(KSDS) or relative files(RRDS)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different data types in cobol?

908


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

987


Write a program to enter and display the names of students in a class using the occurs clause.

920


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1238


What is comp-1 and comp-2?

936


How do we get current date from system with century in COBOL?

1060


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1954


How do you reference the fixed block file formats from cobol programs

912


Write a program to explain size error.

884


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17511


What are the different rules to perform a Search?

813


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

2006


What is the difference between Call and a Link?

889


What is redefines clause in COBOL?

1037


Name some of the examples of COBOl 11?

2880