65 lines
4.1 KiB
HTML
65 lines
4.1 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="task" />
|
|
<meta name="DC.Title" content="Create your own TPN for debugging a DB2 Universal Database for iSeries application server job" />
|
|
<meta name="abstract" content="You can create your own TPN by compiling a CL program that contains debug statements and a TFRCTL QSYS/QCNTEDDM statement at the end. The advantage of this is that you do not need any manual intervention when making the connection." />
|
|
<meta name="description" content="You can create your own TPN by compiling a CL program that contains debug statements and a TFRCTL QSYS/QCNTEDDM statement at the end. The advantage of this is that you do not need any manual intervention when making the connection." />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal1createtpnsetqcntsrvc.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="rbal1createtpn" />
|
|
<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>Create your own TPN for debugging a DB2 Universal Database for iSeries application
|
|
server job</title>
|
|
</head>
|
|
<body id="rbal1createtpn"><a name="rbal1createtpn"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Create your own TPN for debugging a <span class="keyword">DB2 Universal Database™ for iSeries™</span> application
|
|
server job</h1>
|
|
<div><p>You can create your own TPN by compiling a CL program that contains
|
|
debug statements and a TFRCTL QSYS/QCNTEDDM statement at the end. The advantage
|
|
of this is that you do not need any manual intervention when making the connection.</p>
|
|
<div class="section"> <p>See the following code for an example program:</p>
|
|
<div class="note"><span class="notetitle">Note:</span> By using
|
|
the code examples, you agree to the terms of the <a href="codedisclaimer.htm">Code license and disclaimer information</a>.</div>
|
|
<pre>PGM
|
|
MONMSG CPF0000
|
|
STRDBG UPDPROD(*YES) PGM(CALL/QRWTEXEC) MAXTRC(9999)
|
|
ADDBKP STMT(CKUPDATE) PGMVAR((*CHAR (SQLDA@))) OUTFMT(*HEX) +
|
|
LEN(1400)
|
|
ADDTRC PGMVAR((DSLENGTH ()) (LNTH ()) (FDODTA_LNTH ()))
|
|
TRCJOB *ON TRCTYPE(*DATA) MAXSTG(2048) TRCFULL(*STOPTRC)
|
|
TFRCTL QSYS/QCNTEDDM
|
|
ENDPGM </pre>
|
|
<p>The TPN name in the RDB directory entry of the application
|
|
requester (AR) is the name that you supply. Use the text field to provide
|
|
a warning that the special TPN is in use, and be sure to change the TPN name
|
|
back when you have done debugging.</p>
|
|
<p>Be aware that when you
|
|
change the TPN of an RDB, all connections from that AR will use the new TPN
|
|
until you change it back. This might cause surprises for unsuspecting users,
|
|
such as poor performance, long waits for operator responses, and the filling
|
|
up of storage with debug data.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal1createtpnsetqcntsrvc.htm" title="To create your own TPN and set QCNTSRVC, do the following tasks.">Create your own TPN and set QCNTSRVC</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |