74 lines
5.2 KiB
HTML
74 lines
5.2 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="Work with SQL packages" />
|
|
<meta name="abstract" content="An SQL package is an SQL object used specifically by distributed relational database applications. It contains control structures for each SQL statement that accesses data on an application server (AS)." />
|
|
<meta name="description" content="An SQL package is an SQL object used specifically by distributed relational database applications. It contains control structures for each SQL statement that accesses data on an application server (AS)." />
|
|
<meta name="DC.subject" content="working with SQL packages, SQL packages, working with, packages, working with, application program, creating an SQL package, SQL package, creating with CRTSQLxxx" />
|
|
<meta name="keywords" content="working with SQL packages, SQL packages, working with, packages, working with, application program, creating an SQL package, SQL package, creating with CRTSQLxxx" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal1program.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal1sqlpkg.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal1sqlpack.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal1drdastatement.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal1packcreation.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal1bind.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="rbal1wrkpkg" />
|
|
<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>Work with SQL packages</title>
|
|
</head>
|
|
<body id="rbal1wrkpkg"><a name="rbal1wrkpkg"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Work with SQL packages</h1>
|
|
<div><p>An <dfn class="term">SQL package</dfn> is an SQL object used
|
|
specifically by distributed relational database applications. It contains
|
|
control structures for each SQL statement that accesses data on an application
|
|
server (AS).</p>
|
|
<p>These control structures are used by the AS at run time when the application
|
|
program requests data using the SQL statement.</p>
|
|
<p>You must use a control language (CL) command to create an SQL package because
|
|
there is no SQL statement for SQL package creation. You can create an SQL
|
|
package in two ways:</p>
|
|
<ul><li>Using the CRTSQL<em>xxx</em> command with a relational database name specified
|
|
in the RDB parameter.</li>
|
|
<li>Using the <span class="cmdname">Create SQL Package (CRTSQLPKG)</span> command</li>
|
|
</ul>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="rbal1sqlpkg.htm">Use the Create SQL Package (CRTSQLPKG) command</a></strong><br />
|
|
You can enter the <span class="cmdname">Create SQL Package (CRTSQLPKG)</span> command
|
|
to create an SQL package from a compiled distributed relational database program.
|
|
You can also use this command to replace an SQL package that was created previously.</li>
|
|
<li class="ulchildlink"><strong><a href="rbal1sqlpack.htm">Manage an SQL package</a></strong><br />
|
|
After an SQL package is created, you can manage it the same way
|
|
you manage other objects on the <span class="keyword">iSeries™ server</span>,
|
|
with some restrictions.</li>
|
|
</ul>
|
|
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal1program.htm" title="Programmers can write high-level language programs that use SQL statements for iSeries distributed application programs.">Application development</a></div>
|
|
</div>
|
|
<div class="relref"><strong>Related reference</strong><br />
|
|
<div><a href="rbal1drdastatement.htm" title="The statements included with the SQL language specifically support a distributed relational database.">Distributed relational database statements</a></div>
|
|
<div><a href="rbal1packcreation.htm" title="An object called an SQL package can be created as part of the precompile process when the CRTSQLxxx command is compiled.">SQL package creation</a></div>
|
|
<div><a href="rbal1bind.htm" title="Before you can run your application program, a relationship between the program and any referred-to tables and views must be established. This process is called binding.">Bind an application</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |