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

69 lines
4.2 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 dependent relationship" />
<meta name="abstract" content="A dependent relationship is a required relationship between parameters." />
<meta name="description" content="A dependent relationship is a required relationship between parameters." />
<meta name="DC.subject" content="command, CL, defining, dependent relationship, command definition, statement, DEP, DEP (Dependent) statement, use, example" />
<meta name="keywords" content="command, CL, defining, dependent relationship, command definition, statement, DEP, DEP (Dependent) statement, use, example" />
<meta name="DC.Relation" scheme="URI" content="dflst.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="ddrel" />
<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 dependent relationship</title>
</head>
<body id="ddrel"><a name="ddrel"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Define a dependent relationship</h1>
<div><p>A dependent relationship is a required relationship between parameters.</p>
<div class="section"> <p>If a required relationship exists between parameters, and if
parameter values must be checked when the command is run, use the Dependent
(DEP) statement to define that relationship. Using the DEP statement, you
can perform the functions that are listed below: </p>
<ul><li>Specify the controlling conditions that must be true before the parameter
relationships defined in the PARM parameter need to be true (CTL).</li>
<li>Specify the parameter relationships that require testing if the controlling
conditions defined by CTL are true (PARM).</li>
<li>Specify the number of parameter relationships that are defined on the
associated PARM statement that must be true if the control condition is true
(NBRTRUE).</li>
<li>Specify the message identifier of an error message in a message file that
the system is to send to the display station user if the parameter dependencies
have not been satisfied.</li>
</ul>
<p>In the following example, if the display station user
specifies the TYPE(LIST) parameter, the display station user must also specify
the ELEMLIST parameter. </p>
<pre>DEP CTL(&amp;TYPE *EQ LIST) PARM(ELEMLIST)</pre>
<p>In the following example, the parameter &amp;WRITER must never
be equal to the parameter &amp;NEWWTR. If this condition is not true, message <samp class="codeph">USR0001</samp> is
issued to the display station user. </p>
<pre>DEP CTL(*ALWAYS) PARM((&amp;WRITER *NE &amp;NEWWTR)) MSGID(USR0001)</pre>
<p>In the following example, if the display station user specifies
the FILE parameter, the display station user must also specify both the VOL
and LABEL parameters. </p>
<pre>DEP CTL(FILE) PARM(VOL LABEL) NBRTRUE(*EQ 2)</pre>
</div>
</div>
<div>
<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>