DB-OK is a Level-88 condition name. It is probably defined in a copybook that your company company uses as a standard when writing programs that work with IMAGE databases.
All calls to IMAGE intrinsics (subroutines) require a status area to be passed to the intrinsic as the second argument. The first word of the status area is used to pass back to the program a "condition code" that describes the success or failure of the IMAGE call. A value of zero indicates successful completion and is likely the value that DB-OK is used to test for. NOT DB-OK obviously is true in any case where DB-OK is false. Other things the condition word can indicate include reaching the end/beginning of a chain of records, end/begining of a dataset, and dataset full. The other words or doublewords in the status area convey other information returned from various IMAGE calls.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.