ibm-information-center/dist/eclipse/plugins/i5OS.ic.rbam6_5.4.0.1/pgmac.htm

62 lines
3.8 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?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="concept" />
<meta name="DC.Title" content="Program activations" />
<meta name="abstract" content="An activation of a program is the allocation of static storage for the program." />
<meta name="description" content="An activation of a program is the allocation of static storage for the program." />
<meta name="DC.subject" content="activation program, program, activation, RCLRSC (Reclaim Resources) command, Reclaim Resources (RCLRSC) command, command, CL, RCLRSC (Reclaim Resources), Reclaim Resources (RCLRSC), resource, reclaiming, resources" />
<meta name="keywords" content="activation program, program, activation, RCLRSC (Reclaim Resources) command, Reclaim Resources (RCLRSC) command, command, CL, RCLRSC (Reclaim Resources), Reclaim Resources (RCLRSC), resource, reclaiming, resources" />
<meta name="DC.Relation" scheme="URI" content="pgmin.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/rclrsc.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="pgmac" />
<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>Program activations</title>
</head>
<body id="pgmac"><a name="pgmac"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Program activations</h1>
<div><p>An activation of a program is the allocation of static storage
for the program. </p>
<p>An activation is always ended when one of the following happens: </p>
<ul><li>The current routing step ends.</li>
<li>The request that activated the program is canceled.</li>
<li>The <span class="cmdname">Reclaim Resources (RCLRSC)</span> command is run such
that the last (or only) call of a program is ended.</li>
</ul>
<p>In addition, an activation can be destroyed by actions taken during a program
call. These actions are dependent on the language (HLL or CL) in which the
program is written.</p>
<p>When a program is deactivated, static storage is returned to the system.
The language (HLL or CL) in which the program is written determines when
the program is normally deactivated. A CL program is always deactivated when
the program ends.</p>
<p>An RPG/400<sup>®</sup> program
is deactivated when the last record indicator (LR) is set on before the program
ends. If there is a return operation and LR is off, the program is not deactivated.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <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/rclrsc.htm">Reclaim Resources (RCLRSC) command</a></div>
</div>
</div>
</body>
</html>