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

66 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="reference" />
<meta name="DC.Title" content="Expressions" />
<meta name="abstract" content="An expression is the value used as the result of evaluating an expression." />
<meta name="description" content="An expression is the value used as the result of evaluating an expression." />
<meta name="DC.Relation" scheme="URI" content="rbam6parmvalues.htm" />
<meta name="DC.Relation" scheme="URI" content="rbam6charstrings.htm" />
<meta name="DC.Relation" scheme="URI" content="rbam6xpressincom.htm" />
<meta name="DC.Relation" scheme="URI" content="rbam6symops.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="rbam6express" />
<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>Expressions</title>
</head>
<body id="rbam6express"><a name="rbam6express"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Expressions</h1>
<div><p>An expression is the value used as the result of evaluating an
expression.</p>
<div class="section"><p>The types of expressions are arithmetic, character string, relational,
and logical. Expressions can be used as a value for parameters in commands
in CL programs only.</p>
<p>An expression is a group of constants or variables,
separated by operators, that produces a single value. The operators specify
how the values are combined to produce the single value or result. The operators
can be arithmetic, character string, relational, or logical. The constants
or variables can be character, decimal, integer, or logical. For example,
the expression (&amp;A + 1) specifies that the result of adding 1 to the value
in the variable &amp;A is used in place of the expression.</p>
<p>Character
string expressions can be used in certain command parameters defined with
EXPR(*YES) in CL programs. An expression can contain the built-in functions
%BINARY (or %BIN), %SUBSTRING (or %SST), and %SWITCH. The types
of expressions and examples of each are described there.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbam6parmvalues.htm" title="A parameter value is user-supplied information used during the running of a command.">Parameter values</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rbam6symops.htm" title="A variety of characters can be used as symbolic operators in CL commands.">Symbolic operators</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="rbam6charstrings.htm" title="A character string is a string of any EBCDIC characters (alphanumeric and special) that are used as a value.">Character string</a></div>
<div><a href="rbam6xpressincom.htm" title="A character string expression can be used for any parameter, element, or qualifier defined with EXPR(*YES) in the command definition object.">Expressions in CL commands</a></div>
</div>
</div>
</body>
</html>