65 lines
3.8 KiB
HTML
65 lines
3.8 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 the CMD statement" />
|
|
<meta name="abstract" content="When you define a command, you must include one and only one CMD statement with your command definition statements." />
|
|
<meta name="description" content="When you define a command, you must include one and only one CMD statement with your command definition statements." />
|
|
<meta name="DC.subject" content="command, CL, CMD (Command) statement, prompt parameter" />
|
|
<meta name="keywords" content="command, CL, CMD (Command) statement, prompt parameter" />
|
|
<meta name="DC.Relation" scheme="URI" content="hdfcd.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="cmdst" />
|
|
<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 the CMD statement</title>
|
|
</head>
|
|
<body id="cmdst"><a name="cmdst"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Use the CMD statement</h1>
|
|
<div><p>When you define a command, you must include one and only one CMD
|
|
statement with your command definition statements.</p>
|
|
<div class="section"> <p>When you define a command, you can provide command prompt text
|
|
for the user. If the user chooses to be prompted for the command instead
|
|
of entering the entire command, the user types in the command name and presses
|
|
F4 (Prompt). The command prompt is then displayed with the command name and
|
|
the heading prompt text on line 1 of the display.</p>
|
|
<p>If you want to specify
|
|
prompt text for the command, use the PROMPT parameter on the CMD statement
|
|
to specify the heading for the prompt. You then specify the prompts for the
|
|
parameters, elements of a list, and qualifiers on the PROMPT parameters for
|
|
the PARM, ELEM, and QUAL statements.</p>
|
|
<p>On the PROMPT parameter for the
|
|
CMD statement, you can specify the actual prompt heading text as a character
|
|
string 30 characters maximum, or you can specify the message identifier of
|
|
a message description. In the following example, a character string is specified
|
|
for the command ORDENTRY. </p>
|
|
<pre>CMD PROMPT('Order Entry')</pre>
|
|
<p>Line 1 of the prompt looks like this after the user types in
|
|
the command name and presses F4. </p>
|
|
<pre>Order Entry (ORDENTRY)</pre>
|
|
<p>If you do not provide prompt text for the command
|
|
you are defining, you only need to use the word CMD for the CMD statement.
|
|
However, you may want to use the PROMPT keyword for documentation purposes.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="hdfcd.htm" title="To create a command, you must first define the command through command definition statements.">Define a command</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |