125 lines
7.5 KiB
HTML
125 lines
7.5 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 commands" />
|
|
<meta name="abstract" content="After you have defined your command through the command definition statements, you use the Create Command (CRTCMD) command to create the command." />
|
|
<meta name="description" content="After you have defined your command through the command definition statements, you use the Create Command (CRTCMD) command to create the command." />
|
|
<meta name="DC.subject" content="creating, command, attribute, description, CRTCMD (Create Command) command, parameters, Create Command (CRTCMD) command, command, CL, CRTCMD (Create Command), Create Command (CRTCMD), process, command, CL, DLTCMD (Delete Command) command, Delete Command (DLTCMD) command, DLTCMD (Delete Command), Delete Command (DLTMCD), deleting" />
|
|
<meta name="keywords" content="creating, command, attribute, description, CRTCMD (Create Command) command, parameters, Create Command (CRTCMD) command, command, CL, CRTCMD (Create Command), Create Command (CRTCMD), process, command, CL, DLTCMD (Delete Command) command, Delete Command (DLTCMD) command, DLTCMD (Delete Command), Delete Command (DLTMCD), deleting" />
|
|
<meta name="DC.Relation" scheme="URI" content="defcm.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="cdslt.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="cdefs.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/crtcmd.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../clfinder/finder.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="clpgcmdAPIs.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="exdpr.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="ccmds" />
|
|
<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 commands</title>
|
|
</head>
|
|
<body id="ccmds"><a name="ccmds"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Create commands</h1>
|
|
<div><p>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.</p>
|
|
<div class="section"> <p>Besides specifying the command name, library name, and command
|
|
processing program name for CL or high-level languages (HLL), or the source
|
|
member, source file, command environment, and exit program for REXX, you can
|
|
define the following attributes of the command: </p>
|
|
<ul><li>The validity checking used by the command</li>
|
|
<li>The modes in which the command can be run <ul><li>Production</li>
|
|
<li>Debug</li>
|
|
<li>Service</li>
|
|
</ul>
|
|
</li>
|
|
<li>Where the command can be used <ul><li>Batch job</li>
|
|
<li>Interactive job</li>
|
|
<li>ILE CL module in a batch job</li>
|
|
<li>CL program in a batch job</li>
|
|
<li>ILE CL module in an interactive job</li>
|
|
<li>CL program in an interactive job</li>
|
|
<li>REXX procedure in a batch job</li>
|
|
<li>REXX procedure in an interactive job</li>
|
|
<li>As a command interpretively processed by the system through a call to
|
|
QCMDEXC or QCAPCMD.</li>
|
|
</ul>
|
|
</li>
|
|
<li>The maximum number of parameters that can be specified by position</li>
|
|
<li>The message file containing the prompt text</li>
|
|
<li>The help panel group that is used as help for promptable parameters</li>
|
|
<li>The help identifier name for the general help module used on this command</li>
|
|
<li>The message file containing the messages identified on the DEP statement</li>
|
|
<li>The current library to be active during command processing</li>
|
|
<li>The product library to be active during command processing</li>
|
|
<li>Whether an existing command with the same name, type, and library is replaced
|
|
if REPLACE(*YES) is specified.</li>
|
|
<li>The authority given to the public for the command and its description</li>
|
|
<li>Text that briefly describes the command and its function</li>
|
|
</ul>
|
|
<p>For commands with REXX CPPs, you can also specify the following: </p>
|
|
<ul><li>The initial command environment to handle commands when the procedure
|
|
is started</li>
|
|
<li>Exit programs to control running of your procedure</li>
|
|
</ul>
|
|
<p>The following example defines a command named ORDENTRY to call an
|
|
order entry application. The CRTCMD command defines the preceding attributes
|
|
for ORDENTRY and creates the command using the parameter definitions contained
|
|
in the member ORDENTRY in the IBM-supplied source file QCMDSRC. ORDENTRY
|
|
contains the PARM statement used in the example under <a href="exdpr.htm#exdpr">Example: Define a parameter</a>.
|
|
</p>
|
|
<pre>CRTCMD CMD(DSTPRODLB/ORDENTRY) +
|
|
PGM(*LIBL/ORDENT) +
|
|
TEXT('Calls order entry application')</pre>
|
|
<p>The resulting command is as follows where the value can be
|
|
DAILY, WEEKLY, or MONTHLY: </p>
|
|
<pre>ORDENTRY OETYPE(value)</pre>
|
|
<p>Once you have created a command, you can: </p>
|
|
<ul><li>Display the attributes of the command by using the Display Command (DSPCMD)
|
|
command</li>
|
|
<li>Change the attributes of the command by using the Change Command (CHGCMD)
|
|
command</li>
|
|
<li>Delete the command by using the Delete Command (DLTCMD) command</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="cdslt.htm">Command definition source listing</a></strong><br />
|
|
When you create a command, a source list is produced.</li>
|
|
<li class="ulchildlink"><strong><a href="cdefs.htm">Command errors when processing command definition statements</a></strong><br />
|
|
The types of errors that are caught during processing of the command definition statements include syntax errors, references to keywords and labels not defined, and missing statements.</li>
|
|
</ul>
|
|
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="defcm.htm" title="This describes how you can define and create your own commands.">Define commands</a></div>
|
|
</div>
|
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
|
<div><a href="clpgcmdAPIs.htm" title="This describes application programming interfaces (APIs) and programs that can be used when working with commands.">Use command-related APIs</a></div>
|
|
</div>
|
|
<div class="reltasks"><strong>Related tasks</strong><br />
|
|
<div><a href="exdpr.htm" title="This example shows how to define a parameter used in calling an application.">Example: Define a parameter</a></div>
|
|
</div>
|
|
<div class="relinfo"><strong>Related information</strong><br />
|
|
<div><a href="../cl/crtcmd.htm">Create Command (CRTCMD) command</a></div>
|
|
<div><a href="../clfinder/finder.htm">CL command finder</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |