How to find whether a Flat file is empty or not without
Reading a file in COBOL Program. (not using JCL)
Answer Posted / renu
Open the file and check the file code. If it is '10', the file is empty. It is always better to check the file code after every open statement and handle the empty file condition.
| Is This Answer Correct ? | 10 Yes | 8 No |
Post New Answer View All Answers
) how do u code after getting data?
how do you define single dimensional array and multidimensional array in your cobol?
What are the different rules for performing sort operation?
What do you understand by psb and acb?
What is the use of intialize verb?
Mention the guidelines to write a structured cobol program?
What are the pertinent COBOL commands?
Define cobol?
Differentiate between structured cobol programming and object-oriented cobol programming.
how do you reference the fixed unblock file formats from cobol programs
What are the access modes of START statement?
how to move the records from file to array table. give with code example
How do u write test cases?
What is the difference between PIC 9.99 and PIC9v99?
What are various search techniques in cobol? Explain.