ibm-information-center/dist/eclipse/plugins/i5OS.ic.dbmult_5.4.0.1/ajob.htm

91 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="reference" />
<meta name="DC.Title" content="Asynchronous job usage (ASYNCJ) parameter with DB2 Multisystem" />
<meta name="abstract" content="You can use the ASYNCJ parameter to control the usage of the temporary result writer." />
<meta name="description" content="You can use the ASYNCJ parameter to control the usage of the temporary result writer." />
<meta name="DC.subject" content="asynchronous job usage (ASYNCJ) parameter, (ASYNCJ) asynchronous job usage parameter" />
<meta name="keywords" content="asynchronous job usage (ASYNCJ) parameter, (ASYNCJ) asynchronous job usage parameter" />
<meta name="DC.Relation" scheme="URI" content="chgqrya.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="ajob" />
<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>Asynchronous job usage (ASYNCJ) parameter with DB2 Multisystem</title>
</head>
<body id="ajob"><a name="ajob"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Asynchronous job usage (ASYNCJ) parameter with DB2<sup>®</sup> Multisystem</h1>
<div><p>You can use the ASYNCJ parameter to control the usage of the temporary
result writer.</p>
<div class="section"><p>The ASYNCJ parameter has the following options:</p>
<ul><li>*ANY—allows the temporary result writer jobs to be used for database queries
involving distributed files.</li>
<li>*DIST—allows the temporary result writer jobs to be used for database
queries involving distributed files.</li>
<li>*LOCAL—allows the temporary result writer jobs to be used for queries
of local files only. Although this option is allowed, currently there is no
system support for using temporary result writers for local query processing.
*LOCAL was added to disable the temporary result writer for distributed queries,
yet still allow communications to be performed asynchronously.</li>
<li>*NONE—never use the temporary result writer. In addition, when distributed
processing is performed, communications are performed synchronously. This
can be very useful when analyzing queries, because it allows query debug messages
from remote systems to be returned to the local system.</li>
</ul>
<div class="p">The following example shows you how to disable asynchronous job usage
for distributed file processing: <pre>CHGQRYA ASYNCJ(*LOCAL)</pre>
</div>
<p>This
command prevents asynchronous jobs from being used for queries involving distributed
files.</p>
<div class="p">The following example shows you how to completely disable asynchronous
job usage: <pre>CHGQRYA ASYNCJ(*NONE)</pre>
</div>
<p>This
command prevents asynchronous jobs from being used for any queries. In addition,
for queries involving distributed files, communications to remote systems
are done in a synchronous fashion.</p>
<div class="p">The following example shows you how
to use the CHGQRYA command in combination with the Start Debug (STRDBG) command
to analyze a distributed query: <pre>STRDBG UPDPROD(*YES)
CHGQRYA ASYNCJ(*NONE)
STRSQL
SELECT COUNT(*) FROM EMPLOYEE A</pre>
</div>
<div class="p">The following debug
messages are put into the job log:<pre> Current connection is to relational database SYSA.
DDM job started.
Optimizer debug messages for distributed query step 1 of 2 follow:
Temporary distributed result file *QQTDF0001 built for query.
Following messages created on target system SYSB.
Arrival sequence access was used for file EMPLOYEE.
Arrival sequence access was used for file EMPLOYEE.
Optimizer debug messages for distributed query step 2 of 2 follow:
Arrival sequence access was used for file EMPLOYEE.
ODP created.
Blocking used for query.</pre>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="chgqrya.htm" title="The CHGQRYA command has two parameters that are applicable to distributed queries.">Changes to the change query attributes (CHGQRYA) command with DB2 Multisystem</a></div>
</div>
</div>
</body>
</html>