ibm-information-center/dist/eclipse/plugins/i5OS.ic.ddm_5.4.0.1/rbae5optmize.htm

71 lines
5.3 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="Query/38 optimization for DDM" />
<meta name="abstract" content="Query/38 has an optimization function, but because it causes i5/OS database query to be used, the feature cannot be used when the query is performed against a remote file that is not on an iSeries server or a System/38." />
<meta name="description" content="Query/38 has an optimization function, but because it causes i5/OS database query to be used, the feature cannot be used when the query is performed against a remote file that is not on an iSeries server or a System/38." />
<meta name="DC.subject" content="command, Create Query Definition (CRTQRYDEF), command, Create Query Application (CRTQRYAPP), Design Query Application (DSNQRYAPP)" />
<meta name="keywords" content="command, Create Query Definition (CRTQRYDEF), command, Create Query Application (CRTQRYAPP), Design Query Application (DSNQRYAPP)" />
<meta name="DC.Relation" scheme="URI" content="rbae5sys38tools.htm" />
<meta name="DC.Relation" scheme="URI" content="rbae5nqueryx.htm" />
<meta name="DC.Relation" scheme="URI" content="rbae5dbquery.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1999, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1999, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbae5optmize" />
<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>Query/38 optimization for DDM</title>
</head>
<body id="rbae5optmize"><a name="rbae5optmize"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Query/38 optimization for DDM</h1>
<div><p>Query/38 has an optimization function, but because it causes <span class="keyword">i5/OS™</span> database query to be used,
the feature cannot be used when the query is performed against a remote file
that is not on an <span class="keyword">iSeries™ server</span> or
a <span class="keyword">System/38™</span>.</p>
<div class="section"><p>Because <span class="keyword">i5/OS</span> database
query does not exist on non-<span class="keyword">iSeries server</span>s
or non-<span class="keyword">System/38</span>s, the optimization
function cannot be used by the source <span class="keyword">iSeries server</span> when
performing a query against a non-<span class="keyword">iSeries</span> or
a non-<span class="keyword">System/38</span> remote file.</p>
</div>
<div class="section"><p>Therefore, when a Query/38 application is being created or changed
that accesses a remote file on a non-<span class="keyword">iSeries server</span> or
a non-<span class="keyword">System/38</span>, the OPTIMIZE
parameter on the <span class="cmdname">Create Query Application (CRTQRYAPP)</span>, <span class="cmdname">Create
Query Definition (CRTQRYDEF)</span>, or <span class="cmdname">Change Query Definition
(CHGQRYDEF)</span> command must be changed to *NO. Specifying OPTIMIZE(*NO)
forces Query/38 to read the file sequentially, which can be done with non-<span class="keyword">iSeries</span> target files. If the default
of *YES is used, an error occurs when the Query/38 application is run.</p>
</div>
<div class="section"><p>Similarly, if the <span class="cmdname">Design Query Application (DSNQRYAPP)</span> command
is used to create and run queries that are to be performed on a non-<span class="keyword">iSeries</span> target file, the <em>Optimize
Query</em> prompt on the Application Creation display must be changed from
Y to N.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbae5sys38tools.htm" title="The topic collection describes the System/38-compatible data file utility (DFU/38) and the System/38-compatible query utility (Query/38).">System/38-compatible database tools</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="rbae5nqueryx.htm" title="This example shows how to create a local file and use it to define the data that is to be queried in a non-iSeries or non-System/38 remote file.">Non-iSeries or non-System/38 Query/38 example</a></div>
<div><a href="rbae5dbquery.htm" title="The database interactive query function, provided by the i5/OS licensed program, supports DDM files.">i5/OS database query</a></div>
</div>
</div>
</body>
</html>