Using the SESSIONS Option
- Last UpdatedMar 18, 2022
- 1 minute read
When a Database (DB) is reconfigured, by default the session information from the source DB is not preserved. To make sure that session information such as the original session comment, session number, username and original date stays the same after reconfiguration, the administrator can use the command:
RECONFIGURE SESSIONS
The option is not valid for System or Global DBs, and is not available for a partial reconfiguration.
The following example illustrates the use of the SESSIONS option:
|
FROM DB CTBATEST/DESI TO FILE /A /B RCFCOPY ALL RECONFIG SESSIONS |
After reconfiguration, data can be read back in from the file using the existing commands, replacing the original DB data. When reading in data, the DB Number and Extract Number must be the same as the originating DB Number and Extract Number. For example:
|
FROM FILE /A /B TO DB CTBATEST/DESI RECONFIG |
The SAMEREF option is assumed when reading the data. If errors occur, the data is not saved. If the administrator wants the data saved even if errors occur, use the FORCE option. For example:
|
FROM FILE /A /B TO DB CTBATEST/DESI RECONFIG FORCE |