This Natural profile parameter can be used to define database types and
options for all and for specific database IDs. It corresponds to the
NTDB
macro in
the parameter module NATPARM
.
Possible settings | See DB Parameter Syntax. | |
---|---|---|
Default setting | ADABAS,* |
The default database type is Adabas. |
Dynamic specification | yes | This parameter can only be specified dynamically. In the Natural
parameter module NATPARM , the macro
NTDB is used
instead.
|
Specification within session | no |
Notes:
The following topics are covered below:
The DB parameter is specified as follows:
The default database type and its default options is specified as
follows. It applies to all database IDs not explicitly specified by the
DB
parameter or
NTDB
macro.
If there are no options, the commas and the asterisk can be omitted.
DB=(database-type,*,options) |
A single database ID is specified as follows:
DB=(database-type,database-ID,options) |
Multiple database IDs of the same database type with the same options can be specified together, enclosed in parentheses:
DB=(database-type,(database-ID1,database-ID2,...),options) |
Where:
Syntax Element | Value | Explanation |
---|---|---|
database-type |
ADABAS or DLI or
VSAM or DB2 or CXX , etc.
|
Database type.
This subparameter is mandatory for the
|
database-ID |
0 - 65535 |
Database identification.
Database ID You can specify a single database ID, a list of database IDs enclosed in parentheses, or an asterisk (*) to indicate the default for all databases not specified explicitly. |
options |
See Possible Database Options. |
The NTDB
macro is specified as follows:
The default database type and its default options is specified as
follows. It applies to all database IDs not explicitly specified by the DB
parameter or NTDB
macro. If there are no options, the commas and
the asterisk can be omitted.
NTDB database-type,*,options
A single database ID is specified as follows:
NTDB database-type,database-ID,options
Multiple database IDs of the same database type with the same options can be specified together, enclosed in parentheses:
NTDB database-type,(database-ID1,database-ID2,...),options
The following options can be specified in both the
DB
parameter and the NTDB
macro:
Option | Explanation |
---|---|
ACODE |
The Natural application must
communicate to Adabas whether code page or Unicode support is desired if the
Adabas DBID used is enabled for character encoding and data conversion.
Therefore the ACODE setting specifying the application-specific
code page for all A fields and/or the WCODE=4095 (UTF-16) setting
for all W fields must be sent with the OP call. See also
Unicode and
Code Page Support.
|
WCODE |
|
ENTIRE |
The database is to be handled by Entire DB. |
ETP |
The database is to be handled by Entire Transaction Propagator. |
OPEN |
This option applies to Adabas databases only, for
which Adabas requires an open request to be issued. If OPEN is
specified for such a database, an open request is always issued (even if the
ETID is blank).
|
READ |
The database is to be read-only. |
The following options can be specified in the dynamic parameter
DB
only.
Option | Explanation |
---|---|
NOENTIRE |
Resets the ENTIRE option.
|
NOETP |
Resets the ETP option.
|
NOOPEN |
Resets the OPEN option.
|
NOREAD |
Resets the READ option.
|
OFF |
Removes any DB or
NTDB definition for the specified databases, see
Examples of DB
Parameter below.
|
DB=(VSAM,(22,26,33)) |
This defines Databases 22, 26 and 33 as VSAM databases. |
DB=(,*,READ) |
This sets all databases for which the default database definition applies to read-only. |
DB=(,(8,9),NOREAD) |
This removes the read-only option for Databases 8 and 9. |
DB=(,17,OFF) |
This resets the database definition of Database 17 to defaults. |
NTDB DLI,7 |
This defines Database 7 as DL/I database. |
NTDB ADAV8,(10,15,57),ETP |
In the Natural parameter module NATPARM , this
defines Databases 10, 15 and 57 as Adabas databases which are to be handled by
Entire Transaction Propagator.
|