110 lines
7.3 KiB
HTML
110 lines
7.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="Compile CL procedures" />
|
|
<meta name="abstract" content="A CL source procedure must be compiled into a module and bound into a program before it can be run." />
|
|
<meta name="description" content="A CL source procedure must be compiled into a module and bound into a program before it can be run." />
|
|
<meta name="DC.subject" content="creating, CL procedure, program, creating CL, CL procedure, working with, CRTCLMOD (Create Control Language Module) command, Create Control Language Module (CRTCLMOD) command, command, CL, CRTCLMOD (Create Control Language Module), command, CL, Create Control Language Module (CRTCLMOD), control language (CL), procedure, using CRTCLMOD command" />
|
|
<meta name="keywords" content="creating, CL procedure, program, creating CL, CL procedure, working with, CRTCLMOD (Create Control Language Module) command, Create Control Language Module (CRTCLMOD) command, command, CL, CRTCLMOD (Create Control Language Module), command, CL, Create Control Language Module (CRTCLMOD), control language (CL), procedure, using CRTCLMOD command" />
|
|
<meta name="DC.Relation" scheme="URI" content="clpro.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="logcd.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="compi.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="errco.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="pdump.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="modat.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="pgmat.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="retcs.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../clfinder/finder.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/crtpgm.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/crtbndcl.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/crtclmod.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/crtsrvpgm.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="crpro" />
|
|
<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>Compile CL procedures</title>
|
|
</head>
|
|
<body id="crpro"><a name="crpro"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Compile CL procedures</h1>
|
|
<div><p>A CL source procedure must be compiled into a module and bound
|
|
into a program before it can be run.</p>
|
|
<div class="section"> <p>To create a CL program in one step, you can use the <span class="cmdname">Create
|
|
Bound Control Language Program (CRTBNDCL)</span> command and create a bound
|
|
program with one module.</p>
|
|
<p>You can also create a module with the <span class="cmdname">Create
|
|
Control Language Module (CRTCLMOD)</span> command. The module
|
|
must then be bound into a program or service program using the <span class="cmdname">Create
|
|
Program (CRTPGM)</span> or <span class="cmdname">Create Service Program (CRTSRVPGM)</span> command.</p>
|
|
<p>The
|
|
following example creates the module ORD040C and places it in library DSTPRODLB:
|
|
</p>
|
|
<pre>CRTCLMOD MODULE(DSTPRODLB/ORD040C) SRCFILE(QCLSRC)
|
|
TEXT('Order dept general menu program')
|
|
</pre>
|
|
<p>The source commands for ORD040C are in the source file QCLSRC,
|
|
and the source member name is ORD040C. By default, a compiler listing is
|
|
created.</p>
|
|
<p>On the <span class="cmdname">Create Bound Control Language Program (CRTBNDCL)</span> command,
|
|
you can specify listing options and whether the program should operate under
|
|
the program owner's user profile.</p>
|
|
<p>A program can run using either the
|
|
owner's user profile or the user's user profile.</p>
|
|
<p>CL procedures and programs
|
|
are created using options on the Programming Development Manager (PDM) menu
|
|
or the Programmer Menu so the <span class="cmdname">Create Control Language Module (CRTCLMOD)</span> command
|
|
or <span class="cmdname">Create Bound Control Language Program (CRTBNDCL)</span> command
|
|
does not have to be directly entered.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="logcd.htm">Log CL procedure commands</a></strong><br />
|
|
You can specify that most CL commands run in a CL procedure be written (logged) to the job log.</li>
|
|
<li class="ulchildlink"><strong><a href="compi.htm">CL module compiler listings</a></strong><br />
|
|
When you create a CL module, you can create various types of listings
|
|
using the OPTION and OUTPUT parameters on the <span class="cmdname">Create Control Language
|
|
Module (CRTCLMOD)</span> command.</li>
|
|
<li class="ulchildlink"><strong><a href="errco.htm">Common errors when compiling</a></strong><br />
|
|
The types of errors that are detected at compile time include syntax errors, references to variables and labels not defined, and missing statements.</li>
|
|
<li class="ulchildlink"><strong><a href="pdump.htm">Obtain a procedure dump</a></strong><br />
|
|
You can obtain a CL procedure dump during procedure processing.</li>
|
|
<li class="ulchildlink"><strong><a href="modat.htm">Display module attributes</a></strong><br />
|
|
You can use the <span class="cmdname">Display Module (DSPMOD)</span> command
|
|
to display the attributes of a module.</li>
|
|
<li class="ulchildlink"><strong><a href="pgmat.htm">Display program attributes</a></strong><br />
|
|
You can use the <span class="cmdname">Display Program (DSPPGM)</span> command
|
|
to display the attributes of a program.</li>
|
|
<li class="ulchildlink"><strong><a href="retcs.htm">Return code summary</a></strong><br />
|
|
A return code can be returned using the (RTNCDE) parameter on the <span class="cmdname">Retrieve
|
|
Job Attributes (RTVJOBA)</span> command .</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="../clfinder/finder.htm">CL command finder</a></div>
|
|
<div><a href="../cl/crtpgm.htm">Create Program (CRTPGM) command</a></div>
|
|
<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><a href="../cl/crtsrvpgm.htm">Create Service Program (CRTSRVPGM) command</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |