The default database is a relational database that is accessed when an SQL-related I/O statement runs in EGL-generated code and when no other database connection is current. The default database is available from the beginning of a run unit; however, you can dynamically connect to a different database for subsequent access in the same run unit, as described in sysLib.connectionService.
In relation to a Java run unit, the default database is specified in the optional run-time property vgj.jdbc.default.database, which receives a generated value from build descriptor option sqlDB if option genProperties is set to GLOBAL or PROGRAM at generation time.
In relation to an iSeries COBOL program, the idea of a database connection is not meaningful. The build descriptor option destLibrary identifies the library used at run time, and if you wish to reference another library, you must use the name of that other library as a qualifier. For instance, if you need to access the SQL table SAMPLE in library LIBRARY02, you would refer to the table as LIBRARY02.SAMPLE.
Related concepts
Java run-time properties
Run unit
SQL support
Related tasks
Setting up a J2EE JDBC connection
Setting up the J2EE run-time environment for EGL-generated code
Understanding how a standard JDBC connection is made
Related reference
destLibrary
Java run-time properties (details)
sqlDB
sysLib.connectionService
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.