69 lines
4.6 KiB
HTML
69 lines
4.6 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="Transfer control to improve performance" />
|
||
|
<meta name="abstract" content="The Transfer Control (TFRCTL) command calls the program specified on the command, passes control to it, and removes the transferring program from the call stack." />
|
||
|
<meta name="description" content="The Transfer Control (TFRCTL) command calls the program specified on the command, passes control to it, and removes the transferring program from the call stack." />
|
||
|
<meta name="DC.subject" content="call stack, TFRCTL (Transfer Control) command, Transfer Control (TFRCTL) command, command, CL, TFRCTL (Transfer Control), Transfer Control (TFRCTL), control, transferring, description, performance, benefit, using TFRCTL command" />
|
||
|
<meta name="keywords" content="call stack, TFRCTL (Transfer Control) command, Transfer Control (TFRCTL) command, command, CL, TFRCTL (Transfer Control), Transfer Control (TFRCTL), control, transferring, description, performance, benefit, using TFRCTL command" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="clpro.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="tfr.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="tfrpp.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../cl/tfrctl.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../cl/call.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="tfrct" />
|
||
|
<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>Transfer control to improve performance</title>
|
||
|
</head>
|
||
|
<body id="tfrct"><a name="tfrct"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Transfer control to improve performance</h1>
|
||
|
<div><p>The <span class="cmdname">Transfer Control (TFRCTL)</span> command calls
|
||
|
the program specified on the command, passes control to it, and removes the
|
||
|
transferring program from the call stack. </p>
|
||
|
<div class="section"> <div class="p"> Reducing the number of programs on the call stack can have a
|
||
|
performance benefit. When a <span class="cmdname">Call (CALL)</span> command is used,
|
||
|
the program called returns control to the program containing the <span class="cmdname">Call
|
||
|
(CALL)</span> command. When a <span class="cmdname">Transfer Control (TFRCTL)</span> command
|
||
|
is used, control returns to the first program in the call stack. The first
|
||
|
program then initiates the next sequential instruction following the <span class="cmdname">Call
|
||
|
(CALL)</span> command. <div class="note"><span class="notetitle">Note:</span> The <span class="cmdname">Transfer Control (TFRCTL)</span> command
|
||
|
is not valid in ILE CL procedures.</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<ul class="ullinks">
|
||
|
<li class="ulchildlink"><strong><a href="tfr.htm">Example: Use the Transfer Control (TFRCTL) command</a></strong><br />
|
||
|
This is an example of transferring control to improve performance.</li>
|
||
|
<li class="ulchildlink"><strong><a href="tfrpp.htm">Pass parameters using TRFCTL</a></strong><br />
|
||
|
You can pass parameters to the program being called using the <span class="cmdname">Transfer
|
||
|
Control (TFRCTL)</span> command.</li>
|
||
|
</ul>
|
||
|
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="clpro.htm" title="This provides tasks and concepts specific to CL programming.">CL programming</a></div>
|
||
|
</div>
|
||
|
<div class="relinfo"><strong>Related information</strong><br />
|
||
|
<div><a href="../cl/tfrctl.htm">Transfer Control (TFRCTL) command</a></div>
|
||
|
<div><a href="../cl/call.htm">Call (CALL) command</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|