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
What is comp-1 and comp-2?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Write the code implementing the perform … varying.
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
How can you get the ksds file records into your cobol program?
What is rmode(24)
What is the LINKAGE SECTION used in COBOL?
How arrays can be defined in COBOL?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
How do you reference the fixed block file formats from cobol programs
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What type of SDLC u followed? Why?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?