80 lines
5.3 KiB
HTML
80 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="task" />
|
||
|
<meta name="DC.Title" content="Control flow and communicate between programs and procedures" />
|
||
|
<meta name="abstract" content="You can use the Call Program (CALL), Call Bound Procedure (CALLPRC), and Return (RETURN) commands to pass control back and forth between programs and procedures." />
|
||
|
<meta name="description" content="You can use the Call Program (CALL), Call Bound Procedure (CALLPRC), and Return (RETURN) commands to pass control back and forth between programs and procedures." />
|
||
|
<meta name="DC.subject" content="control language (CL), program, controlling flow between programs" />
|
||
|
<meta name="keywords" content="control language (CL), program, controlling flow between programs" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="clpro.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="passc.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="passp.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="parts.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="workv.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../cl/callprc.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../cl/call.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../cl/return.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../books/sc415302.pdf" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="pgmin.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="cflow" />
|
||
|
<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>Control flow and communicate between programs and procedures</title>
|
||
|
</head>
|
||
|
<body id="cflow"><a name="cflow"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Control flow and communicate between programs and procedures</h1>
|
||
|
<div><p>You can use the <span class="cmdname">Call Program (CALL)</span>, <span class="cmdname">Call
|
||
|
Bound Procedure (CALLPRC)</span>, and <span class="cmdname">Return (RETURN)</span> commands
|
||
|
to pass control back and forth between programs and procedures. </p>
|
||
|
<div class="section"> <p>Each command has slightly different characteristics. Information
|
||
|
may be passed to called programs and procedures as parameters when control
|
||
|
is passed.</p>
|
||
|
<p>Special attention should be given to programs created with
|
||
|
USRPRF(*OWNER) that run CALL or CALLPRC commands. Security characteristics
|
||
|
of these commands differ when they are processed in programs running under
|
||
|
an owner's user profile.</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<ul class="ullinks">
|
||
|
<li class="ulchildlink"><strong><a href="passc.htm">Pass control</a></strong><br />
|
||
|
This presents different options for passing control to a procedure.</li>
|
||
|
<li class="ulchildlink"><strong><a href="passp.htm">Pass parameters</a></strong><br />
|
||
|
When you pass control to another program or procedure, you can also pass information to it for modification or use within the receiving program or procedure.</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="relconcepts"><strong>Related concepts</strong><br />
|
||
|
<div><a href="parts.htm" title="While each source statement entered as part of a CL procedure is actually a CL command, the source can be divided into the basic parts used in many typical CL procedures.">Parts of a CL procedure</a></div>
|
||
|
</div>
|
||
|
<div class="reltasks"><strong>Related tasks</strong><br />
|
||
|
<div><a href="workv.htm" title="CL procedures consist of CL commands, and the commands themselves consist of the command statement, parameters, and parameter values.">Use variables</a></div>
|
||
|
<div><a href="pgmin.htm" title="You can use the Display Debug (DSPDBG) command to display the call stack.">Display the call stack</a></div>
|
||
|
</div>
|
||
|
<div class="relinfo"><strong>Related information</strong><br />
|
||
|
<div><a href="../cl/callprc.htm">Call Bound Procedure (CALLPRC) command</a></div>
|
||
|
<div><a href="../cl/call.htm">Call (CALL) command</a></div>
|
||
|
<div><a href="../cl/return.htm">Return (RETURN) command</a></div>
|
||
|
<div><a href="../books/sc415302.pdf" target="_blank">iSeries Security Reference</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|