ibm-information-center/dist/eclipse/plugins/i5OS.ic.sqlp_5.4.0.1/rbafydrdbexample.htm

106 lines
5.8 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="reference" />
<meta name="DC.Title" content="DB2 UDB for iSeries distributed relational database example program" />
<meta name="abstract" content="A remote unit of work relational database sample program is shipped with the SQL product. There are several files and members within the QSQL library to help you set up an environment that will run a distributed DB2 UDB for iSeries sample program." />
<meta name="description" content="A remote unit of work relational database sample program is shipped with the SQL product. There are several files and members within the QSQL library to help you set up an environment that will run a distributed DB2 UDB for iSeries sample program." />
<meta name="DC.subject" content="examples, distributed RUW program, sample programs, remote unit of work, example program, distributed relational database, distributed RUW example program" />
<meta name="keywords" content="examples, distributed RUW program, sample programs, remote unit of work, example program, distributed relational database, distributed RUW example program" />
<meta name="DC.Relation" scheme="URI" content="rbafydrda.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="rbafydrdbexample" />
<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>DB2 UDB for iSeries distributed
relational database example program</title>
</head>
<body id="rbafydrdbexample"><a name="rbafydrdbexample"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1"><span class="keyword">DB2 UDB for iSeries</span> distributed
relational database example program</h1>
<div><p>A remote unit of work relational database sample program is
shipped with the SQL product. There are several files and members within the
QSQL library to help you set up an environment that will run a distributed <span class="keyword">DB2<sup>®</sup> UDB for iSeries™</span> sample program.</p>
<div class="section"><p>To use these files and members, you need to run the SETUP batch
job located in the file QSQL/QSQSAMP. The SETUP batch job allows you to customize
the example to do the following:</p>
<ul><li>Create the QSQSAMP library at the local and remote locations.</li>
<li>Set up relational database directory entries at the local and remote locations.</li>
<li>Create application panels at the local location.</li>
<li>Precompile, compile, and run programs to create distributed sample application
schemas, tables, indexes, and views.</li>
<li>Load data into the tables at the local and remote locations.</li>
<li>Precompile and compile programs.</li>
<li>Create SQL packages at the remote location for the application programs.</li>
<li>Precompile, compile, and run the program to update the location column
in the department table.</li>
</ul>
</div>
<div class="section"><p>Before running the SETUP, you may need to edit the SETUP member
of the QSQL/QSQSAMP file. Instructions are included in the member as comments.
To run the SETUP, specify the following command on the system command line:</p>
<pre>
========&gt; SBMDBJOB QSQL/QSQSAMP SETUP
</pre>
</div>
<div class="section"><p>Wait for the batch job to complete.</p>
</div>
<div class="section"><p>To use the sample program, specify the following command on the
command line:</p>
<pre>========&gt; ADDLIBLE QSQSAMP
</pre>
</div>
<div class="section"><p>To call the first display that allows you to customize the sample
program, specify the following command on the command line.</p>
<pre>========&gt; CALL QSQ8HC3
</pre>
</div>
<div class="section"><p>The following display appears. From this display, you can customize
your database sample program.</p>
<pre class="screen">DB2 for OS/400 ORGANIZATION APPLICATION
ACTION...........: _ A (ADD) E (ERASE)
D (DISPLAY) U (UPDATE)
OBJECT...........: __ DE (DEPARTMENT) EM (EMPLOYEE)
DS (DEPT STRUCTURE)
SEARCH CRITERIA..: __ DI (DEPARTMENT ID) MN (MANAGER NAME)
DN (DEPARTMENT NAME) EI (EMPLOYEE ID)
MI (MANAGER ID) EN (EMPLOYEE NAME)
LOCATION.........: ________________ (BLANK IMPLIES LOCAL LOCATION)
DATA.............: _______________________________
Bottom
F3=Exit
(C) COPYRIGHT IBM CORP. 1982, 1991</pre>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafydrda.htm" title="A distributed relational database consists of a set of SQL objects that are spread across interconnected computer systems.">Distributed relational database function and SQL</a></div>
</div>
</div>
</body>
</html>