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
Explain how you can characterize tables in cobol?
) How do u handle errors in BMS macro
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
What is the difference between PIC 9.99 and PIC9v99?
How you can characterize tables in cobol?
What is redefines clause in COBOL?
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?
Write the code implementing the perform … varying.
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
Write a program that uses move corresponding.
how do you reference the ksds vsam file formats from cobol programs
Name the sections present in data division.
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What are different data types in cobol?
What is the use of intialize verb?