57 lines
3.3 KiB
HTML
57 lines
3.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="Example: Define a parameter" />
|
||
|
<meta name="abstract" content="This example shows how to define a parameter used in calling an application." />
|
||
|
<meta name="description" content="This example shows how to define a parameter used in calling an application." />
|
||
|
<meta name="DC.subject" content="parameter, defining, example, Parameter (PARM) statement, PARM (Parameter) statement" />
|
||
|
<meta name="keywords" content="parameter, defining, example, Parameter (PARM) statement, PARM (Parameter) statement" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="defpr.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="ccmds.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="exdpr" />
|
||
|
<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>Example: Define a parameter</title>
|
||
|
</head>
|
||
|
<body id="exdpr"><a name="exdpr"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Example: Define a parameter</h1>
|
||
|
<div><p>This example shows how to define a parameter used in calling an
|
||
|
application.</p>
|
||
|
<div class="section"> <p>The following example defines a parameter OETYPE for a command
|
||
|
to call an order entry application. </p>
|
||
|
<pre>PARM KWD(OETYPE) TYPE(*CHAR) RSTD(*YES) +
|
||
|
VALUES(DAILY WEEKLY MONTHLY) MIN(1) +
|
||
|
PROMPT('Type of order entry:')</pre>
|
||
|
<p>The OETYPE parameter is required (MIN parameter
|
||
|
is 1) and its value is restricted (RSTD parameter is *YES) to the values DAILY,
|
||
|
WEEKLY, or MONTHLY. The PROMPT parameter contains the prompt text for the
|
||
|
parameter. Since no LEN keyword is specified and TYPE(*CHAR) is defined, a
|
||
|
length of 32 is the default.</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="defpr.htm" title="To define a parameter, you must use the PARM statement.">Define parameters</a></div>
|
||
|
</div>
|
||
|
<div class="reltasks"><strong>Related tasks</strong><br />
|
||
|
<div><a href="ccmds.htm" title="After you have defined your command through the command definition statements, you use the Create Command (CRTCMD) command to create the command.">Create commands</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|