Current and Non-current Databases
- Last UpdatedOct 28, 2024
- 1 minute read
A MDB can contain up to 1000 DBs, and any number of the 1000 DBs can be described as current and accessed at one time. Databases which cannot be accessed are described as non-current or deferred.
EXCHANGE replaces a current DB by a non-current DB. The DB names do not need to be listed in a particular order, since the MDB knows which are current and which are non-current, but they must be paired correctly if more than two names are listed.
CURRENT includes the specified DB at a given position in the Current list.
DEFER removes the specified DB from the Current list and makes it non-current.
For example, assume that an MDB contains the following DBs as shown by a LIST command:
/DESIGN
Current DBS: PIPING/PIPING-A PIPING/PIPINGC
MASTER/CATA-D
Deferred DBS: PIPING/PIPING-B MASTER/PIPING-
The command
EXCHANGE PIPING/PIPING-A PIPING/PIPING-B MASTER/PIPING-E MASTER/CATA-D
would result in the new configuration
/DESIGN
Current DBS: PIPING/PIPING-B PIPING/PIPING-C
MASTER/PIPING-E
Deferred DBS: PIPING/PIPING-A MASTER/CATA-D
Note:
The current DBs PIPING/PIPING-A and MASTER/CATA-D are replaced by the DBs PIPING/PIPING-B
and MASTER/PIPING-E respectively, even though they are listed out of sequence in the
EXCHANGE command.
The effect of the command
CURRENT PIPING/PIPING-A 1 MASTER/CATA-D 4
after the EXCHANGE command is to insert the named DBs at positions 1 and 4 respectively in the Current list, resulting in
/DESIGN
Current DBS: PIPING/PIPING-A PIPING/PIPING-B PIPING/PIPING-C MASTER/CATA-D
MASTER/PIPING-E
Deferred DBS:**NONE**
Note that the position specified for each DB to be added to the Current list applies after the previous insertions have been made.