Application program objects

The process of creating a DB2® UDB for iSeries™ application program may result in the creation of several objects. This section briefly describes the process of creating a DB2 UDB for iSeries application.

DB2 UDB for iSeries supports both non-ILE and ILE precompilers. Application programs may be either distributed or nondistributed.

With DB2 UDB for iSeries you may need to manage the following objects:

With a non-distributed non-ILE DB2 UDB for iSeries program, you must manage only the original source and the resulting program. The following shows the objects involved and steps that happen during the precompile and compile processes for a nondistributed non-ILE DB2 UDB for iSeries program:


Precompile and compile processes for a nondistributed, non-ILE program. The user source file member precompiles the to a temporary source file member. This member is then compiled into a program.

With a non-distributed ILE DB2 UDB for iSeries program, you may need to manage the original source, the modules, and the resulting program or service program. The following shows the objects involved and steps that happen during the precompile and compile processes for a non-distributed ILE DB2 UDB for iSeries program when OBJTYPE(*PGM) is specified on the precompile command:


Precompile and compile processes for a nondistributed ILE program. The user source file member precompiles the to a temporary source file member. This member is then compiled into a module which binds to a program.

With a distributed non-ILE DB2 UDB for iSeries program, you must manage the original source, the resulting program, and the resulting package. The following shows the objects and steps that occur during the precompile and compile processes for a distributed non-ILE DB2 UDB for iSeries program:


Precompile and compile processes for a distributed non-ILE program. The user source file member precompiles the to a temporary source file member. This member is then compiled into a program. Once the program is created, an SQL package is created to hold the program.

With a distributed ILE DB2 UDB for iSeries program, you must manage the original source, module objects, the resulting program or service program, and the resulting packages. An SQL package can be created for each distributed module in a distributed ILE program or service program. The following shows the objects and steps that occur during the precompile and compile processes for a distributed ILE DB2 UDB for iSeries program:


Precompile and compile processes for a distributed ILE program. The user source file member precompiles the to a temporary source file member. This member is then compiled into a module which binds to a program. Once the program is created, an SQL package is created to hold the program.
Note: The access plans associated with the DB2 UDB for iSeries distributed program object are not created until the program is run locally.
Related information
Prepare and run a program with SQL statements