69 lines
4.1 KiB
HTML
69 lines
4.1 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="Define a simple list" />
|
||
|
<meta name="abstract" content="A simple list can accept one or more values of the type specified by the parameter." />
|
||
|
<meta name="description" content="A simple list can accept one or more values of the type specified by the parameter." />
|
||
|
<meta name="DC.subject" content="parameter value, list of, simple, simple list, defining, description, passing to CPP, element in list" />
|
||
|
<meta name="keywords" content="parameter value, list of, simple, simple list, defining, description, passing to CPP, element in list" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="dflst.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="defslclhll.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="slrx.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="dslst" />
|
||
|
<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 a simple list</title>
|
||
|
</head>
|
||
|
<body id="dslst"><a name="dslst"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Define a simple list</h1>
|
||
|
<div><p>A simple list can accept one or more values of the type specified
|
||
|
by the parameter. </p>
|
||
|
<div class="section"> <p>For example, if the parameter is for the user name, a simple
|
||
|
list means that more than one user name can be specified on that parameter.</p>
|
||
|
<pre>USER(JONES SMITH MILLER)</pre>
|
||
|
<p>If a parameter's value is a simple list, you specify the maximum
|
||
|
number of elements the list can accept using the MAX parameter on the PARM
|
||
|
statement. For a simple list, no command definition statements other than
|
||
|
the PARM statement need be specified.</p>
|
||
|
<p>The following example defines
|
||
|
a parameter USER for which the display station user can specify up to five
|
||
|
user names (a simple list). </p>
|
||
|
<pre>PARM KWD(USER) TYPE(*NAME) LEN(10) MIN(0) MAX(5) +
|
||
|
SPCVAL(*ALL) DFT(*ALL)</pre>
|
||
|
<p>The parameter is an optional parameter as specified by MIN(0)
|
||
|
and the default value is *ALL as specified by DFT(*ALL).</p>
|
||
|
<p>When the elements
|
||
|
in a simple list are passed to the command processing program, the format
|
||
|
varies depending on whether you are using CL or HLL, or REXX. </p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<ul class="ullinks">
|
||
|
<li class="ulchildlink"><strong><a href="defslclhll.htm">Use CL or HLL for simple lists</a></strong><br />
|
||
|
This describes the format in which elements in a simple list are passed when a command is run using CL or a high-level language.</li>
|
||
|
<li class="ulchildlink"><strong><a href="slrx.htm">Use REXX for simple lists</a></strong><br />
|
||
|
This describes the format in which elements in a simple list are passed when a command is run using REXX.</li>
|
||
|
</ul>
|
||
|
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dflst.htm" title="You can define a parameter to accept a list of values instead of just a single value.">Define lists for parameters</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|