88 lines
5.6 KiB
HTML
88 lines
5.6 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 mixed list" />
|
|
<meta name="abstract" content="A mixed list accepts a set of separately defined values." />
|
|
<meta name="description" content="A mixed list accepts a set of separately defined values." />
|
|
<meta name="DC.subject" content="list of parameter value, elements, using Element (ELEM) statement, parameter value, list of, mixed, command, CL, defining, mixed list, Element (ELEM) statement, use, description, parameter, with mixed list, command definition, mixed list with, element in list, statement, ELEM, element, defining in a list, Element (ELEM) statement, example, mixed list, passing to CPP" />
|
|
<meta name="keywords" content="list of parameter value, elements, using Element (ELEM) statement, parameter value, list of, mixed, command, CL, defining, mixed list, Element (ELEM) statement, use, description, parameter, with mixed list, command definition, mixed list with, element in list, statement, ELEM, element, defining in a list, Element (ELEM) statement, example, mixed list, passing to CPP" />
|
|
<meta name="DC.Relation" scheme="URI" content="dflst.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="defmlclhll.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="mlrx.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="dmlst" />
|
|
<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 mixed list</title>
|
|
</head>
|
|
<body id="dmlst"><a name="dmlst"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Define a mixed list</h1>
|
|
<div><p>A mixed list accepts a set of separately defined values.</p>
|
|
<div class="section"> <p> These values usually have different meanings, are of different
|
|
types, and are in a fixed position in the list. For example, <samp class="codeph">LOG(4
|
|
0 *SECLVL)</samp> could specify a mixed list. The first value, <samp class="codeph">4</samp>,
|
|
identifies the message level to be logged; the second value, <samp class="codeph">0</samp>,
|
|
is the lowest message severity to be logged. The third value, <samp class="codeph">*SECLVL</samp>,
|
|
specifies the amount of information to be logged (both first- and second-level
|
|
messages). If a parameter's value is a mixed list, the elements of the list
|
|
must be defined separately using an Element (ELEM) statement for each element.</p>
|
|
<p>The
|
|
TYPE parameter on the associated PARM statement must have a label that refers
|
|
to the first ELEM statement for the list. </p>
|
|
<pre> PARM KWD(LOG) TYPE(LOGLST) ...
|
|
|
|
LOGLST: ELEM TYPE(*INT2) ...
|
|
ELEM TYPE(*INT2) ...
|
|
ELEM TYPE(*CHAR) LEN(7)</pre>
|
|
<p>The first ELEM statement is the only ELEM statement that can
|
|
have a label. Specify the ELEM statements in the order in which the elements
|
|
occur in the list.</p>
|
|
<p>Note that when the MAX parameter has a value greater
|
|
than 1 on the PARM statement, and the TYPE parameter refers to ELEM statements,
|
|
the parameter being defined is a list within a list.</p>
|
|
<p>Parameters that
|
|
you can specify on the ELEM statement include TYPE, LEN, CONSTANT, RSTD, DFT,
|
|
VALUES, REL, RANGE, SPCVAL, SNGVAL, MIN, MAX, ALWUNPRT, ALWVAR, PGM, DTAARA,
|
|
FILE, FULL, EXPR, VARY, PASSATR, CHOICE, CHOICEPGM, and PROMPT.</p>
|
|
<p>In the
|
|
following example, a parameter CMPVAL is defined for which the display station
|
|
user can specify a comparison value and a starting position for the comparison
|
|
(a mixed list). </p>
|
|
<pre> PARM KWD(CMPVAL) TYPE(CMP) SNGVAL(*ANY) DFT(*ANY) +
|
|
MIN(0)
|
|
CMP: ELEM TYPE(*CHAR) LEN(80) MIN(1)
|
|
ELEM TYPE(*DEC) LEN(2 0) RANGE(1 80) DFT(1)</pre>
|
|
<p>When the elements in a mixed 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="defmlclhll.htm">Use CL or HLL for mixed lists</a></strong><br />
|
|
This describes the format in which elements in a mixed list are passed when a command is run using CL or a high-level language.</li>
|
|
<li class="ulchildlink"><strong><a href="mlrx.htm">Use REXX for mixed lists</a></strong><br />
|
|
This describes the format in which elements in a mixed 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> |