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

109 lines
7.8 KiB
HTML
Raw 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="task" />
<meta name="DC.Title" content="Define commands" />
<meta name="abstract" content="This describes how you can define and create your own commands." />
<meta name="description" content="This describes how you can define and create your own commands." />
<meta name="DC.Relation" scheme="URI" content="cmdinfodoc.htm" />
<meta name="DC.Relation" scheme="URI" content="rbam6comdefstate.htm" />
<meta name="DC.Relation" scheme="URI" content="ovhdc.htm" />
<meta name="DC.Relation" scheme="URI" content="hdfcd.htm" />
<meta name="DC.Relation" scheme="URI" content="dtpr.htm" />
<meta name="DC.Relation" scheme="URI" content="dflst.htm" />
<meta name="DC.Relation" scheme="URI" content="pmtc.htm" />
<meta name="DC.Relation" scheme="URI" content="pop.htm" />
<meta name="DC.Relation" scheme="URI" content="ccmds.htm" />
<meta name="DC.Relation" scheme="URI" content="dcdef.htm" />
<meta name="DC.Relation" scheme="URI" content="ccdcp.htm" />
<meta name="DC.Relation" scheme="URI" content="wcppg.htm" />
<meta name="DC.Relation" scheme="URI" content="wvchk.htm" />
<meta name="DC.Relation" scheme="URI" content="exdcc.htm" />
<meta name="DC.Relation" scheme="URI" content="clabbr.htm" />
<meta name="DC.Relation" scheme="URI" content="usvar.htm" />
<meta name="DC.Relation" scheme="URI" content="varrr.htm" />
<meta name="DC.Relation" scheme="URI" content="clabbr.htm" />
<meta name="DC.Relation" scheme="URI" content="doccmd.htm" />
<meta name="DC.Relation" scheme="URI" content="doccmd.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="defcm" />
<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>Define commands</title>
</head>
<body id="defcm"><a name="defcm"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Define commands</h1>
<div><p>This describes how you can define and create your own commands.</p>
<div class="section"> <p>A CL command is a statement that requests that the system perform
a function. Entering the command starts a program that performs the function.
CL commands allow you to request a broad range of functions. You can use these
IBM-supplied commands, change the default values that are supplied by IBM<sup>®</sup>,
and even define your own commands.</p>
<p>When you define and create your own
CL commands, you may also want to provide documentation for them.</p>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rbam6comdefstate.htm">Command definition statements</a></strong><br />
Command definition allows system users to create additional commands to meet specific application needs.</li>
<li class="ulchildlink"><strong><a href="ovhdc.htm">Command definition process</a></strong><br />
This shows how a command is created.</li>
<li class="ulchildlink"><strong><a href="hdfcd.htm">Define a command</a></strong><br />
To create a command, you must first define the command through command definition statements.</li>
<li class="ulchildlink"><strong><a href="dtpr.htm">Data type and parameter restrictions</a></strong><br />
There are valid combinations of parameters according to the parameter type.</li>
<li class="ulchildlink"><strong><a href="dflst.htm">Define lists for parameters</a></strong><br />
You can define a parameter to accept a list of values instead of just a single value.</li>
<li class="ulchildlink"><strong><a href="pmtc.htm">Use prompt control</a></strong><br />
You can control which parameters are displayed for a command during prompting by using prompt control specifications.</li>
<li class="ulchildlink"><strong><a href="pop.htm">Key parameters and prompt override programs</a></strong><br />
The prompt override program allows current values rather than defaults to be displayed when a command is prompted. Key parameters are parameters, such as the name of an object, that uniquely identify the object.</li>
<li class="ulchildlink"><strong><a href="ccmds.htm">Create commands</a></strong><br />
After you have defined your command through the command definition
statements, you use the <span class="cmdname">Create Command (CRTCMD)</span> command
to create the command.</li>
<li class="ulchildlink"><strong><a href="dcdef.htm">Display a command definition</a></strong><br />
You can use the <span class="cmdname">Display Command (DSPCMD)</span> command
to display or print the values that were specified as parameters on the CRTCMD
command. </li>
<li class="ulchildlink"><strong><a href="ccdcp.htm">Effect of changing the command definition of a command in a procedure or program</a></strong><br />
Some changes can be made to the command definition of a command with no further action. Other changes may require the program or procedure to be recreated, or may cause the program or procedure to function differently.</li>
<li class="ulchildlink"><strong><a href="wcppg.htm">Write a command processing program or procedure</a></strong><br />
A command processing program (CPP) is a program that processes a command. This program performs some validity checking and processes the command so that the requested function is performed.</li>
<li class="ulchildlink"><strong><a href="wvchk.htm">Write a validity checking program</a></strong><br />
You can write a validity checking program for your command to detect errors and send diagnostic messages.</li>
<li class="ulchildlink"><strong><a href="exdcc.htm">Examples: Define and create commands</a></strong><br />
This contains examples of defining and creating commands.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="cmdinfodoc.htm" title="This describes how you can define your own commands and provide documentation for them.">Define and document commands</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="varrr.htm" title="Character variables can be used for some commands to represent a value on the command parameter.">Variables replacing reserved or numeric parameter values</a></div>
</div>
<div class="reltasks"><strong>Related tasks</strong><br />
<div><a href="usvar.htm" title="Variables can be used to specify a list or qualified name.">Specify a list or qualified name using a variable</a></div>
<div><a href="doccmd.htm" title="You can create online help and HTML command description information for commands that you create.">Document commands</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="clabbr.htm" title="This section contains alphabetic lists of abbreviations that are used in CL commands that are part of IBM i5/OS and other IBM iSeries licensed programs.">Abbreviations of CL commands and keywords</a></div>
</div>
</div>
</body>
</html>