ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzakc_5.4.0.1/rzakcconditionfield.htm

78 lines
4.7 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="concept" />
<meta name="DC.Title" content="Conditioning a field for more than one keyword" />
<meta name="abstract" content="If you are conditioning a field, the field name (or the constant) and the last (or only) indicator must be on the same line." />
<meta name="description" content="If you are conditioning a field, the field name (or the constant) and the last (or only) indicator must be on the same line." />
<meta name="DC.Relation" scheme="URI" content="rzakcmstpsnent.htm" />
<meta name="DC.Relation" scheme="URI" content="rzakcdisplaysize.htm" />
<meta name="DC.Relation" scheme="URI" content="../dds/rbafpmstsyntax.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2001, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2001, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzakcconditionfield" />
<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>Conditioning a field for more than one keyword</title>
</head>
<body id="rzakcconditionfield"><a name="rzakcconditionfield"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Conditioning a field for more than one keyword</h1>
<div><p>If you are conditioning a field, the field name (or the constant)
and the last (or only) indicator must be on the same line.</p>
<p>If you do not select the field for an output operation, no keywords specified
for that field are in effect, regardless of how the keywords are conditioned.
For example, in the following figure, FLDA is selected if either indicator
01 is off or indicator 02 is on. If FLDA is not selected, any keyword associated
with that field, such as DSPATR(HI), is ignored.</p>
<div class="fignone" id="rzakcconditionfield__dfcex1"><a name="rzakcconditionfield__dfcex1"><!-- --></a><span class="figcap">Figure 1. Display file coding example</span><pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00100A* DISPLAY FILE EXAMPLE
00101A*
00102A REF(PAYROLL)
00103A R MENU
00104A H HLPARA(1 1 12 80)
00105A HLPRCD(RECORD1 FILEA)
00106A N01
00107AO 02 FLDA 20I 2O 2 2DSPATR(HI)
00108A FLDB 22N 2B 3 2
00109A 72 73
00110AO 60 61 62
00111AA 63 DSPATR(HI)
00112A FLDC 7Y 0B 7 20DSPATR(RI PC)
00113A 42 43
00114AO 60 61
00115AO 62 9 2'Constant'
00116A FLDD R 11 2</pre>
</div>
<p>If you want to condition one or more keywords, the last (or only) indicator
must appear on the same line as the keywords. If the conditioning applies
to keywords on more than one line, you must use keyword continuation for the
indicators to apply to all keywords.</p>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rzakcdisplaysize.htm">Display size condition names</a></strong><br />
If you want your program to open this file to display devices with display sizes other than 24 lines x 80 characters, specify the DSPSIZ (Display Size) keyword at the file level.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakcmstpsnent.htm" title="Use this information to specify the first 44 positions of the data description specifications (DDS) form for display files.">Positional entries for display files (positions 1 through 44)</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="../dds/rbafpmstsyntax.htm">Rules for DDS keywords and parameter values</a></div>
</div>
</div>
</body>
</html>