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

122 lines
7.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="reference" />
<meta name="DC.Title" content="DFT (Default) keyword for display files" />
<meta name="abstract" content="Use this field-level keyword to specify the constant value for constant fields (unnamed fields) and to specify a default value for named fields." />
<meta name="description" content="Use this field-level keyword to specify the constant value for constant fields (unnamed fields) and to specify a default value for named fields." />
<meta name="DC.subject" content="DFT (Default) keyword, Default (DFT) keyword" />
<meta name="keywords" content="DFT (Default) keyword, Default (DFT) keyword" />
<meta name="DC.Relation" scheme="URI" content="rzakcmstkeyent.htm" />
<meta name="DC.Relation" scheme="URI" content="rzakcmstdfputov.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="rzakcmstdfdft" />
<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>DFT (Default) keyword for display files</title>
</head>
<body id="rzakcmstdfdft"><a name="rzakcmstdfdft"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">DFT (Default) keyword for display files</h1>
<div><p>Use this field-level keyword to specify the constant value for
constant fields (unnamed fields) and to specify a default value for named
fields.</p>
<div class="section"><p>The format of the keyword is:</p>
<pre>DFT('value') | 'value'</pre>
<p>The
maximum number of characters you can specify in the literal is set by the
size of the display on which the field is to be displayed as follows:</p>
<dl><dt><strong>Size of display</strong></dt>
<dd><strong>Maximum characters</strong></dd>
<dt class="dlterm">24 x 80</dt>
<dd>1919</dd>
<dt class="dlterm">27 x 132</dt>
<dd>3563</dd>
</dl>
</div>
<div class="section"><h4 class="sectiontitle">Constant fields</h4><p>The value of a constant field can
be specified as a value enclosed by single quotation marks. (For other ways to specify
a constant field, see the DATE, MSGCON, and TIME keywords.) You can omit the
DFT keyword itself, as well as the parentheses, to simplify the DDS. Whether
you specify the DFT keyword explicitly or implicitly, the <span class="keyword">i5/OS™</span> operating
system displays the specified value as a constant field on the display. See <a href="pos1928.htm">Name for display files (positions 19 through 28)</a> for a description of constant fields.</p>
</div>
<div class="section"><h4 class="sectiontitle">Named fields</h4><p>For input-only fields, the specified
value is displayed each time the field is displayed. The displayed value can
then be changed by the workstation user and returned to your program.</p>
<p>For
output-only and input/output fields, you must also specify PUTOVR at the record
level and OVRDTA at the field level with the DFT keyword. The specified value
is displayed only on the first output operation. On subsequent output operations,
the program value is displayed.</p>
<p>The DFTVAL, EDTCDE, and EDTWRD keywords
cannot be specified with the DFT keyword.</p>
<p>The DFT keyword is not valid
on floating point fields.</p>
<p>Option indicators are not valid for this keyword,
although option indicators can be used to condition the field (whether constant
or named) on which it is specified.</p>
</div>
<div class="example"><h4 class="sectiontitle">Example 1</h4><p>The following example shows how to specify
the DFT keyword.</p>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00030A HOTTYP 1 I 7 9DFT('D')
00040A VALUES('D' 'S')
00050A 8 9'ON'
00060A 01 12 1'HOTEL NAME: 'TERRACE INN'
00070A TEXT('Constant field is +
00080A conditioned, not the implicit +
00090A DFT keyword')
00100A 02 12 1'HOTEL NAME: 'RIVER VIEW INN'
00110A TEXT('Either 'TERRACE INN' or +
00120A 'RIVER VIEW INN' could +
00130A appear in line 12, position 1')
A</pre>
<p>The constant field <em>ON</em>, having no option indicators,
is always displayed.</p>
<p>If indicator 01 is on, the following
information is displayed:</p>
<pre>HOTEL NAME: 'TERRACE INN'</pre>
<p>If indicator 02 is on and indicator 01 is off,
the following information is displayed:</p>
<pre>HOTEL NAME: 'RIVER VIEW INN'</pre>
</div>
<div class="example"><h4 class="sectiontitle">Example 2</h4> <p>If you are specifying a constant field
for more than one display size, and you are changing the location of the field
but not the contents of the field for the different display sizes, then do
not repeat the value. The following example shows how to do this.</p>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A DSPSIZ(*DS3 *DS4)
A :
A :
00080A 22 2'Constant data'
00090A 26 2
A</pre>
<p>The constant field <em>Constant data</em> appears on line
22, position 2, on the 24 x 80 display screen, and it appears on line 26,
position 2, on the 27 x 132 display.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakcmstkeyent.htm" title="You type the keyword entries that define display files in positions 45 through 80 (functions).">DDS keyword entries for display files (positions 45 through 80)</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="rzakcmstdfputov.htm" title="Use this record-level keyword to permit the override of either display attributes or data contents (or both) of specific fields within a record displayed on a workstation device. By using PUTOVR, you can reduce the amount of data sent to the display device.">PUTOVR (Put with Explicit Override) keyword for display files</a></div>
</div>
</div>
</body>
</html>