How to find whether a Flat file is empty or not without
Reading a file in COBOL Program. (not using JCL)

Answer Posted / sandy

Opening a file will give a file status code of '0' and
not '10'. Only when reading, file status will be '10'

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between structured cobol programming and object alternativelyiented cobol programming?

711


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

661


What is the difference between a binary search and a sequential search what are the pertinent cobol?

735


Mention the guidelines to write a structured cobol program?

620


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

859






I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1118


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10626


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

807


Differentiate between structured cobol programming and object-oriented cobol programming.

669


Write the code to count the sum of n natural numbers.

701


) what is the difference between AID and HANDLE AID?

1637


Write some characteristics of cobol as means of business language.

620


What are the different data types in cobol?

797


For rewrite, why is it mandatory that file needs to be opened?

623


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8167