| DB Access Class Library for COBOL V1.0 API Reference - Microsoft(R) Windows(R) - - Microsoft(R) Windows NT(R) - - Microsoft(R) Windows(R) 2000 - |
Contents
Index
![]()
|
Chapter 4 Examples of Using the DB Access Class Library
A procedure for recovering the object created must appear in the program that uses the DB access class library.
An unwanted object can be recovered using a SET statement, before termination of the program, to set the object to null.
A sample coding of the object recovery procedure is shown below.
CONFIGURATION SECTION
REPOSITORY.
CLASS FJDB-SESSION
CLASS FJDB-DATABASE.
:
:
01 SESSION-A USAGE OBJECT REFERENCE FJDB-SESSION.
01 DATABASE-A USAGE OBJECT REFERENCE FJDB-DATABASE.
:
:
PROCEDURE DIVISION
:
*Data manipulation procedure
:
SET DATABASE-A TO NULL.
SET SESSION-A TO NULL.
STOP RUN.
END PROGRAM SAMPLE.
Contents
Index
![]()
|