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

81 lines
5.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="Create a CL procedure" />
<meta name="abstract" content="All programs are created in steps." />
<meta name="description" content="All programs are created in steps." />
<meta name="DC.subject" content="CL program, creating, CL procedure, source creation, procedure creation, using source statements, using CRTCLMOD command" />
<meta name="keywords" content="CL program, creating, CL procedure, source creation, procedure creation, using source statements, using CRTCLMOD command" />
<meta name="DC.Relation" scheme="URI" content="clpro.htm" />
<meta name="DC.Relation" scheme="URI" content="inter.htm" />
<meta name="DC.Relation" scheme="URI" content="batch.htm" />
<meta name="DC.Relation" scheme="URI" content="parts.htm" />
<meta name="DC.Relation" scheme="URI" content="clsimpleproc.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/crtpgm.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/crtclpgm.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/crtbndcl.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="creat" />
<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>Create a CL procedure</title>
</head>
<body id="creat"><a name="creat"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Create a CL procedure</h1>
<div><p>All programs are created in steps.</p>
<div class="section"> <ol><li><strong>Source creation</strong>. CL procedures consist of CL commands. In most
cases, source statements are entered into a database file in the logical sequence
determined by your application design.</li>
<li><strong>Module creation</strong>. Using the <span class="cmdname">Create Control Language Module
(CRTCLMOD)</span> command, this source is used to create a
system object. The created CL module can be bound into programs. A CL module
contains one CL procedure. Other HLL languages may contain multiple procedures
for each module.</li>
<li><strong>Program creation</strong>. Using the <span class="cmdname">Create Program (CRTPGM)</span> command,
this module (along with other modules and service programs) is used to create
a program.</li>
</ol>
<div class="note"><span class="notetitle">Note:</span> If you want to create a program consisting of only one CL module,
you can use the <span class="cmdname">Create Bound CL Program (CRTBNDCL)</span> command,
which combines steps 2 and 3. If you want to create an OPM CL program from
the CL source statements, you can use the <span class="cmdname">Create CL Program (CRTCLPGM)</span> command.</div>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="inter.htm">Interactive entry</a></strong><br />
Interactive entry allows you to enter commands individually</li>
<li class="ulchildlink"><strong><a href="batch.htm">Batch entry</a></strong><br />
You can create CL source, a CL module, and a program in one batch input stream.</li>
<li class="ulchildlink"><strong><a href="parts.htm">Parts of a CL procedure</a></strong><br />
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.</li>
<li class="ulchildlink"><strong><a href="clsimpleproc.htm">Example: Simple CL procedure</a></strong><br />
This example is a procedure that calls several programs.</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/crtpgm.htm">Create Program (CRTPGM) command</a></div>
<div><a href="../cl/crtclpgm.htm">Create CL Program (CRTCLPGM) command</a></div>
<div><a href="../cl/crtbndcl.htm">Create Bound CL Program (CRTCLPGM) command</a></div>
</div>
</div>
</body>
</html>