84 lines
4.7 KiB
HTML
84 lines
4.7 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="DFTVAL (Default Value) keyword for display files" />
|
|
<meta name="abstract" content="Use this field-level keyword to specify a default value for an output-capable field." />
|
|
<meta name="description" content="Use this field-level keyword to specify a default value for an output-capable field." />
|
|
<meta name="DC.subject" content="DFTVAL (Default Value) keyword, Default Value (DFTVAL) keyword" />
|
|
<meta name="keywords" content="DFTVAL (Default Value) keyword, Default Value (DFTVAL) keyword" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzakcmstkeyent.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="rzakcmstdfdfval" />
|
|
<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>DFTVAL (Default Value) keyword for display files</title>
|
|
</head>
|
|
<body id="rzakcmstdfdfval"><a name="rzakcmstdfdfval"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">DFTVAL (Default Value) keyword for display files</h1>
|
|
<div><p>Use this field-level keyword to specify a default value for an
|
|
output-capable field.</p>
|
|
<div class="section"><p>On the first output operation, the specified value is displayed
|
|
if the option indicator is on or has not been specified. Otherwise, the program
|
|
value is used. On subsequent output operations, the program value appears.</p>
|
|
<p>The
|
|
format of the keyword is:</p>
|
|
<pre>DFTVAL('value')</pre>
|
|
<p>This
|
|
keyword is valid on output-only (O) or output-input (B) fields.</p>
|
|
<p>You
|
|
can only use this keyword to initialize named fields. It is not allowed on
|
|
constant fields.</p>
|
|
<p>Since the maximum number of characters on a DDS statement
|
|
is 5000, this keyword, along with any other keywords specified on the DDS
|
|
statement, must contain less than 5000 characters.</p>
|
|
<p>You cannot use this
|
|
keyword in a subfile format (SFL keyword).</p>
|
|
<p>You cannot specify the DFTVAL
|
|
keyword on the same field with a DFT, EDTCDE (Edit Code), or EDTWRD (Edit
|
|
Word) keyword, or on a floating-point field.</p>
|
|
<p>Option indicators are valid
|
|
for this keyword.</p>
|
|
</div>
|
|
<div class="example"><h4 class="sectiontitle">Example</h4><p>The following example shows how to specify
|
|
the DFTVAL keyword.</p>
|
|
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
|
|
A R RECORD1
|
|
A 50 PUTOVR
|
|
A FIELD1 3A B 12 01DFTVAL('AAA') OVRDTA
|
|
A FIELD2 3D 0O 12 05OVRDTA
|
|
A 10 DFTVAL('000')
|
|
A FIELD3 3D 0O 12 09DFTVAL('000') OVRDTA
|
|
A</pre>
|
|
<p>In this example, before displaying the record, the application
|
|
program assigns ZZZ to FIELD1, 999 to FIELD2, and 456 to FIELD3. On the first
|
|
output operation, AAA 000 000 displays if indicator 10 is on; AAA 999 000
|
|
displays if indicator 10 is off.</p>
|
|
<p>The workstation user types XXX into
|
|
FIELD1. On the second output operation, XXX 999 456 displays if indicator
|
|
50 is on; AAA 000 000 displays if indicator 50 is off and indicator 10 was
|
|
on during the first output operation. AAA 999 000 displays if
|
|
indicator 50 is off and indicator 10 was off during the first output operation.</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>
|
|
</body>
|
|
</html> |