file status 00 is checked after opening the file or reading
the file
Answers were Sorted based on User's Feedback
Answer / dilli
it can be used for both the situation for successful opening
and reading the file
| Is This Answer Correct ? | 13 Yes | 1 No |
Answer / vamsi
file status codes:
41: already opened trying to open again
02:duplicate key
00:opened sucessfully
21:duplicate record
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / srinath
File status is checked at both times i.e while opening as
well as while reading the file also.
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / neha
no it is used for opening the file. for reading file 01 is
code generally.from successful run the code
| Is This Answer Correct ? | 0 Yes | 1 No |
What is COMP SYNC?
Which Search verb is equivalent to PERFORM…VARYING?
what is the default print format? in cobol
How to execute a set of JCL statements from a COBOL program?
diffrence between renames and redifnes with examples
What are the divisions in a cobol program? Which one is the mandatory division among them?
period is missing in the cobol program which error we getting
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
how can we find total no of records in a file ....is there any utility......?
01 a pic x(6) value is abcdef 01 b pic x(3) move a to b wht will be the value in b ?
I have a COBOL main program which is calling sub program, the number of calling parameters used in main program are 4 whereas in sub program it's 5. Sub program is passing 5 parameters back to main program Will there be any compilation error? Or main program parameters displays junk values?
01 a pic s9(5) value -12345, if we disply a , the sign will overpunched with last digit but i need to get the miuns sign in the result?