60 lines
4.3 KiB
HTML
60 lines
4.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="task" />
|
|
<meta name="DC.Title" content="Pass parameters using TRFCTL" />
|
|
<meta name="abstract" content="You can pass parameters to the program being called using the Transfer Control (TFRCTL) command." />
|
|
<meta name="description" content="You can pass parameters to the program being called using the Transfer Control (TFRCTL) command." />
|
|
<meta name="DC.subject" content="parameter, passing, example, Transfer Control (TFRTCL) command, TFRCTL (Transfer Control) command, Transfer Control (TFRCTL) command, command, CL, TFRCTL (Transfer Control), Transfer Control (TFRCTL), control, transferring, use" />
|
|
<meta name="keywords" content="parameter, passing, example, Transfer Control (TFRTCL) command, TFRCTL (Transfer Control) command, Transfer Control (TFRCTL) command, command, CL, TFRCTL (Transfer Control), Transfer Control (TFRCTL), control, transferring, use" />
|
|
<meta name="DC.Relation" scheme="URI" content="tfrct.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/tfrctl.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="tfrpp" />
|
|
<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>Pass parameters using TRFCTL</title>
|
|
</head>
|
|
<body id="tfrpp"><a name="tfrpp"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Pass parameters using TRFCTL</h1>
|
|
<div><p>You can pass parameters to the program being called using the <span class="cmdname">Transfer
|
|
Control (TFRCTL)</span> command.</p>
|
|
<div class="section"> <p>The <span class="cmdname">Transfer Control (TFRCTL)</span> command can
|
|
be used to pass parameters to the program being called in the same way the
|
|
CALL command passes parameters, but with these restrictions: </p>
|
|
<ul><li>The parameters passed must be CL variables.</li>
|
|
<li>The CL variables passed by the transferring program must have been received
|
|
as parameters by that program.</li>
|
|
<li>This command is valid only within OPM CL programs.</li>
|
|
</ul>
|
|
<p>In the following example, PROGA calls PROGB and passes two variables, &A
|
|
and &B, to it. PROGB uses these two variables and another internally declared
|
|
variable, &C. When control is transferred to PROGC, only &A and &B
|
|
can be passed to PROGC. When PROGC finishes processing, control is returned
|
|
to PROGA, where these variables originated.<br /><img src="rbafn547.gif" alt="In the following example, PROGA calls PROGB and passes two variables, &A and &B, to it. PROGB uses these two variables and another internally declared variable, &C. When control is transferred to PROGC, only &A and &B can be passed to PROGC. When PROGC finishes processing, control is returned to PROGA, where these variables originated." /><br /></p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="tfrct.htm" title="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.">Transfer control to improve performance</a></div>
|
|
</div>
|
|
<div class="relinfo"><strong>Related information</strong><br />
|
|
<div><a href="../cl/tfrctl.htm">Transfer Control (TFRCTL) command</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |