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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how you can characterize tables in cobol?

650


) How do u handle errors in BMS macro

1514


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

699


What is the difference between PIC 9.99 and PIC9v99?

787


How you can characterize tables in cobol?

727






What is redefines clause in COBOL?

853


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1236


Write the code implementing the perform … varying.

648


Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

2345


Write a program that uses move corresponding.

684


how do you reference the ksds vsam file formats from cobol programs

671


Name the sections present in data division.

705


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

665


What are different data types in cobol?

699


What is the use of intialize verb?

756