4 Database Manipulation
DBCLOSE (base name, data set, mode, status)
The parameters are:
Mode 1: Close the database. The database described is closed, the memory segment assigned by DBOPEN is released, and the first two bytes of the base name parameter are reset to blanks. The data set parameter is ignored.
Mode 3: Data set rewind. The specified data set pointer is reset to the first item in the set.
Array Element | Value | Description |
---|---|---|
1 | 0 | CW. |
2 through 4 | Unchanged | |
5 | 0 | |
6 | 403 | The DBCLOSE identification number. |
7 | Program line number | |
8 | 0 | |
9 | Mode number | The mode parameter value. |
10 | Any value | Reserved. |
The execution of certain system commands causes an implicit DBCLOSE to be performed. For example, the RUN and SCRATCH C commands perform a mode 1 DBCLOSE on all databases currently opened by the user. This terminates access to the database until a DBOPEN is executed. The following list of statements and keys perform an implicit DBCLOSE in mode 1.
STOP or END
RUN
SCRATCH C
SCRATCH A
CTRL Y *
QUIT
QQUIT
* CTRL Y performs an implicit DBCLOSE only in the run-time version of Eloquence (not the development version).