70 lines
4.0 KiB
HTML
70 lines
4.0 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 REXX for mixed lists" />
|
||
|
<meta name="abstract" content="This describes the format in which elements in a mixed list are passed when a command is run using REXX." />
|
||
|
<meta name="description" content="This describes the format in which elements in a mixed list are passed when a command is run using REXX." />
|
||
|
<meta name="DC.subject" content="REXX procedure, using, for mixed list, mixed list, using REXX for, list, REXX, mixed" />
|
||
|
<meta name="keywords" content="REXX procedure, using, for mixed list, mixed list, using REXX for, list, REXX, mixed" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="dmlst.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="mlrx" />
|
||
|
<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 REXX for mixed lists</title>
|
||
|
</head>
|
||
|
<body id="mlrx"><a name="mlrx"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Use REXX for mixed lists</h1>
|
||
|
<div><p>This describes the format in which elements in a mixed list are
|
||
|
passed when a command is run using REXX.</p>
|
||
|
<div class="section"> <p>When a command is run using REXX, the elements in a mixed list
|
||
|
are passed to the command processing program in the following format where <samp class="codeph">valueN</samp> is
|
||
|
the last value in the mixed list.: </p>
|
||
|
<pre> . . . CMPVAL(value1 value2
|
||
|
. . . valueN) . . .</pre>
|
||
|
<p>If the user does not enter a value for an element,
|
||
|
a default value is passed. For example, if in the previous example, the user
|
||
|
enters a comparison value of QCMDI for the CMPVAL parameter, but does not
|
||
|
enter a value for the starting position, whose default value is 1, the following
|
||
|
is passed: </p>
|
||
|
<pre> . . . CMPVAL(QCMDI 1)
|
||
|
. . .</pre>
|
||
|
<p>Note that trailing blanks are not passed with REXX values.</p>
|
||
|
<p>When
|
||
|
a display station user enters a single value or when a single value is the
|
||
|
default for a mixed list, the value is passed as the first element in the
|
||
|
list. For example, if the display station user enters *ANY as a single value
|
||
|
for the parameter, the following is passed: </p>
|
||
|
<pre> . . . CMPVAL(*ANY) . . .</pre>
|
||
|
<p>Again note that trailing blanks are not passed with REXX values.</p>
|
||
|
<p>If
|
||
|
no default value is defined on the PARM statement for an optional parameter
|
||
|
and the first value of the list is required (MIN(1)), then the parameter itself
|
||
|
is not required. But if any element is specified, the first element is required.
|
||
|
In this case, if the command is entered without specifying a value for the
|
||
|
parameter, the following is passed: </p>
|
||
|
<pre> . . . CMPVAL() . . .</pre>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dmlst.htm" title="A mixed list accepts a set of separately defined values.">Define a mixed list</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|