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

69 lines
4.0 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="Use a root source view" />
<meta name="abstract" content="A root source view contains the source statements of the source member." />
<meta name="description" content="A root source view contains the source statements of the source member." />
<meta name="DC.subject" content="root source view, using" />
<meta name="keywords" content="root source view, using" />
<meta name="DC.Relation" scheme="URI" content="ppgmobj.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/crtbndcl.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/crtclmod.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="rootsrc" />
<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>Use a root source view</title>
</head>
<body id="rootsrc"><a name="rootsrc"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Use a root source view</h1>
<div><p>A root source view contains the source statements of the source
member.</p>
<div class="section"> <p>To use the root source view with the ILE source debugger, the
ILE CL compiler creates the root source view while the module object (*MODULE)
is being created. </p>
<div class="note"><span class="notetitle">Note:</span> The module object is created by using references
to locations of the source statements in the root source member instead of
copying the source statements into the view. Therefore, you should not modify,
rename, or move root source members between the creation of the module and
the debugging of the module created from these members.</div>
<p>To debug
an ILE CL module object by using a root source view, use the *SOURCE or *ALL
option on the DBGVIEW parameter for either the <span class="cmdname">Create
CL Module (CRTCLMOD)</span> or <span class="cmdname">Create Bound CL (CRTBNDCL)</span> commands.</p>
<p>One
way to create a root source view, is as follows: </p>
<pre><span><samp class="codeph">CRTCLMOD
MODULE(MYLIB/MYPGM) SRCFILE(MYLIB/QCLLESRC) SRCMBR(MYPGM) TEXT('CL Program')
DBGVIEW(*SOURCE)</samp></span></pre>
<p>The <span class="cmdname">Create CL Module (CRTCLMOD)</span> command
with *SOURCE for the DBGVIEW parameter creates a root source view for module
object <span class="synph"><span class="var">MYPGM</span></span>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="ppgmobj.htm" title="Before you can use the ILE source debugger, you must prepare the program object.">Prepare a program object for a debug session</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../cl/crtbndcl.htm">Create Bound CL Program (CRTBNDCL) command</a></div>
<div><a href="../cl/crtclmod.htm">Create CL Module (CRTCLMOD) command</a></div>
</div>
</div>
</body>
</html>