ibm-information-center/dist/eclipse/plugins/i5OS.ic.rbam6_5.4.0.1/defdlclhll.htm

82 lines
5.5 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?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 CL or HLL for lists within lists" />
<meta name="abstract" content="This describes the format in which elements in a list within a list are passed when a command is run using CL or a high-level language." />
<meta name="description" content="This describes the format in which elements in a list within a list are passed when a command is run using CL or a high-level language." />
<meta name="DC.subject" content="list within list, using CL or HLL for, list, CL or HLL for list within" />
<meta name="keywords" content="list within list, using CL or HLL for, list, CL or HLL for list within" />
<meta name="DC.Relation" scheme="URI" content="dlist.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="defdlclhll" />
<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 CL or HLL for lists within lists</title>
</head>
<body id="defdlclhll"><a name="defdlclhll"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Use CL or HLL for lists within lists</h1>
<div><p>This describes the format in which elements in a list within a
list are passed when a command is run using CL or a high-level language.</p>
<div class="section"> <p>When a command is run using CL or HLL, a list within a list is
passed to the command processing program in the following format:</p>
<br /><img src="rbafn534.gif" alt="When a command is run using CL or HLL, a list within a list is passed to the command processing program in the this format." /><br /><p>The number of lists is passed
as a binary value of length 2. Following the number of lists, the displacement
to the lists is passed (not the values that were entered in the lists). Each
displacement is passed as a binary value of length 2 or length 4 depending
on the value of the LISTDSPL parameter.</p>
<p>The following example shows
a definition for a parameter KWD2 (which is a mixed list within a simple list)
how the parameter can be specified by the display station user,
and what is passed. The parameter definition is: </p>
<pre> PARM KWD(KWD2) TYPE(LIST) MAX(20) MIN(0) +
DFT(*NONE) SNGVAL(*NONE) LISTDSPL(*INT2)
LIST: ELEM TYPE(*CHAR) LEN(10) MIN(1) /*From value*/
ELEM TYPE(*CHAR) LEN(5) MIN(0) /*To value*/</pre>
<p>The display station user enters the KWD2 parameter as: </p>
<pre>KWD2((A B))</pre>
<p>The following is passed to the command processing program:</p>
<br /><img src="rbafn516.gif" alt="Example of what is passed to the command processing program when the display station user enters the KWD2 parameter as KWD2((A B))." /><br /><div class="p">If the display station user
enters the following instead: <pre>KWD2((A B) (C D))</pre>
the following is passed to the command processing program:</div>
<br /><img src="rbafn517.gif" alt="Example of what is passed to the command processing program when the display station user enters KWD2((A B) (C D))." /><br /><p>Lists within a list are passed
to the command processing program in the order n (the last one entered by
the display station user) to 1 (the first one entered by the display station
user). The displacements, however, are passed from 1 to n.</p>
<p>The following
is a more complex example of lists within lists. The parameter definition
is: </p>
<pre> PARM KWD(PARM1) TYPE(LIST3) MAX(25)
LIST3: ELEM TYPE(LIST4)
ELEM TYPE(*CHAR) LEN(3)
ELEM TYPE(*NAME) LEN(2) MAX(5)
LIST4: ELEM TYPE(*DEC) LEN(7 2)
ELEM TYPE(*TIME)
</pre>
<div class="p">If the display station user enters the PARM1 parameter as shown
in the following example: <pre>PARM1(((11.1 120900) A (A1 A2)) ((-22.2 131500) B (B1 B2)))</pre>
the following is passed to the command processing program:</div>
<div class="fignone"><br /><img src="rv2w506.gif" alt="Example of what is passed if the display station user enters the PARM1 parameter as PARM1(((11.1 120900) A (A1 A2)) ((-22.2 131500) B (B1 B2)))." /><br /></div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dlist.htm" title="A list within a list can be either a list that can be specified more than once for a parameter (simple or mixed list), or a list that can be specified for a value within a mixed list.">Define lists within lists</a></div>
</div>
</div>
</body>
</html>