113 lines
8.9 KiB
HTML
113 lines
8.9 KiB
HTML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<!DOCTYPE html
|
||
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html lang="en-us" xml:lang="en-us">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
<meta name="security" content="public" />
|
||
|
<meta name="Robots" content="index,follow" />
|
||
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
||
|
<meta name="DC.Type" content="concept" />
|
||
|
<meta name="DC.Title" content="Application program objects" />
|
||
|
<meta name="abstract" content="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." />
|
||
|
<meta name="description" content="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." />
|
||
|
<meta name="DC.subject" content="application, creating program, program objects" />
|
||
|
<meta name="keywords" content="application, creating program, program objects" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafyintro.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafysqlpcusfm.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafysqlpcosfm.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafysqlpcprogram.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafysqlpcpackage.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafysqlpcmodule.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafysqlpcservicepgm.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../rzajp/rzajppreprog.htm" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="rbafyapplprogobjects" />
|
||
|
<meta name="DC.Language" content="en-us" />
|
||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
||
|
<!-- US Government Users Restricted Rights -->
|
||
|
<!-- Use, duplication or disclosure restricted by -->
|
||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
||
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
||
|
<title>Application program objects</title>
|
||
|
</head>
|
||
|
<body id="rbafyapplprogobjects"><a name="rbafyapplprogobjects"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Application program objects</h1>
|
||
|
<div><p>The process of creating a <span class="keyword">DB2<sup>®</sup> UDB for iSeries™</span> application
|
||
|
program may result in the creation of several objects. This section briefly
|
||
|
describes the process of creating a <span class="keyword">DB2 UDB for iSeries</span> application.</p>
|
||
|
<p><span class="keyword">DB2 UDB for iSeries</span> supports both non-ILE
|
||
|
and ILE precompilers. Application programs may be either distributed or nondistributed. </p>
|
||
|
<p>With <span class="keyword">DB2 UDB for iSeries</span> you may need
|
||
|
to manage the following objects: </p>
|
||
|
<ul><li>The original source</li>
|
||
|
<li>Optionally, the module object for ILE programs</li>
|
||
|
<li>The program or service program</li>
|
||
|
<li>The SQL package for distributed programs</li>
|
||
|
</ul>
|
||
|
<p>With a non-distributed non-ILE <span class="keyword">DB2 UDB for iSeries</span> 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 <span class="keyword">DB2 UDB for iSeries</span> program:</p>
|
||
|
<div class="fignone"><br /><img src="rv2w565.gif" alt="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." /><br /></div>
|
||
|
<p>With a non-distributed ILE <span class="keyword">DB2 UDB for iSeries</span> 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 <span class="keyword">DB2 UDB for iSeries</span> program when OBJTYPE(*PGM)
|
||
|
is specified on the precompile command:</p>
|
||
|
<div class="fignone"><br /><img src="rv2w569.gif" alt="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." /><br /></div>
|
||
|
<p>With a distributed non-ILE <span class="keyword">DB2 UDB for iSeries</span> 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 <span class="keyword">DB2 UDB for iSeries</span> program:</p>
|
||
|
<div class="fignone"><br /><img src="rv2w566.gif" alt="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." /><br /></div>
|
||
|
<p>With a distributed ILE <span class="keyword">DB2 UDB for iSeries</span> 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 <span class="keyword">DB2 UDB for iSeries</span> program:</p>
|
||
|
<div class="fignone"><br /><img src="rv2w570.gif" alt="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." /><br /></div>
|
||
|
<div class="note"><span class="notetitle">Note:</span> The access plans associated with the <span class="keyword">DB2 UDB for iSeries</span> distributed
|
||
|
program object are not created until the program is run locally.</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<ul class="ullinks">
|
||
|
<li class="ulchildlink"><strong><a href="rbafysqlpcusfm.htm">User source file member</a></strong><br />
|
||
|
A source file member contains the programmer's application language
|
||
|
and SQL statements. You can create and maintain the source file member by
|
||
|
using the source entry utility (SEU), a part of the <span class="keyword">IBM<sup>®</sup> WebSphere<sup>®</sup> Development Studio for iSeries</span> licensed
|
||
|
program.</li>
|
||
|
<li class="ulchildlink"><strong><a href="rbafysqlpcosfm.htm">Output source file member</a></strong><br />
|
||
|
The SQL precompile creates an output source file member.</li>
|
||
|
<li class="ulchildlink"><strong><a href="rbafysqlpcprogram.htm">Program</a></strong><br />
|
||
|
A <dfn class="term">program</dfn> is the object that you can run that is created
|
||
|
as a result of the compilation process for non-ILE compilations or as a result
|
||
|
of the bind process for ILE compilations.</li>
|
||
|
<li class="ulchildlink"><strong><a href="rbafysqlpcpackage.htm">SQL package</a></strong><br />
|
||
|
An SQL package contains the access plans for a distributed SQL program.</li>
|
||
|
<li class="ulchildlink"><strong><a href="rbafysqlpcmodule.htm">Module</a></strong><br />
|
||
|
A module is an Integrated Language Environment<sup>®</sup> (ILE)
|
||
|
object that is created by compiling source code using the CRT<var class="varname">xxx</var>MOD
|
||
|
command (or any of the CRTBND<var class="varname">xxx</var> commands where <var class="varname">xxx</var> is
|
||
|
C, CBL, CPP, or RPG).</li>
|
||
|
<li class="ulchildlink"><strong><a href="rbafysqlpcservicepgm.htm">Service program</a></strong><br />
|
||
|
A service program is an Integrated Language
|
||
|
Environment<sup>®</sup> (ILE) object that provides a means of packaging externally
|
||
|
supported callable routines (functions or procedures) into a separate object.</li>
|
||
|
</ul>
|
||
|
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafyintro.htm" title="These topics describe the iSeries server implementation of the Structured Query Language (SQL) using DB2 UDB for iSeries and the DB2 UDB Query Manager and SQL Development Kit licensed program.">Introduction to DB2 UDB for iSeries Structured Query Language</a></div>
|
||
|
</div>
|
||
|
<div class="relinfo"><strong>Related information</strong><br />
|
||
|
<div><a href="../rzajp/rzajppreprog.htm">Prepare and run a program with SQL statements</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|