Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


File status must be checked both while opening and reading
the file or only while reading the file?

Answers were Sorted based on User's Feedback



File status must be checked both while opening and reading the file or only while reading the file..

Answer / nagaraj ramamoorthy

As a good programming practice, it will be good if you
handle/include all possible error combination in the
program. so the file status must be checked in both cases.

Is This Answer Correct ?    8 Yes 0 No

File status must be checked both while opening and reading the file or only while reading the file..

Answer / raj

At the time of reading is enough. There is only one case of
getting abend at the time of opening i.e, If that file
doesn't exists.But in general the programmer doesn't open
any file if that one is not exists so there will be no
negative effect if we insert the File status check Opening
file.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More COBOL Interview Questions

i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?

1 Answers   HCL,


What is the difference between binary search and sequential search?

0 Answers  


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1 Answers  


What is tne need to use sub programs in Cobol?

3 Answers   HSBC,


I want to remove a duplicates form a given input field using cobol program. please Any one help me out to solve this ... Thanks in Advance.

3 Answers   IBM,


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

0 Answers  


what is difference between the sysabend and userabend?

2 Answers  


subscript and index r not coded in u r application program what will happen?

2 Answers  


What is redefines clause in COBOL?

0 Answers   B-Ways TecnoSoft,


I had 100 records and i want to execute last three records by using cobol programming?what will be coding?

4 Answers   IBM,


can any one help -s806

6 Answers  


What is the difference beetween Arrays and Tables in Cobol? please dont give the answer that arrays in cobol terminology is called tables......

3 Answers   BirlaSoft,


Categories