74 lines
4.4 KiB
HTML
74 lines
4.4 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="concept" />
|
|
<meta name="DC.Title" content="Input field default values" />
|
|
<meta name="abstract" content="You can use these methods to put default values into the input fields of your display, which users can override with their own data." />
|
|
<meta name="description" content="You can use these methods to put default values into the input fields of your display, which users can override with their own data." />
|
|
<meta name="DC.Relation" scheme="URI" content="rbagsdispfiledsgngide.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../rzakc/rzakcmstdfdft.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../rzakc/rzakcmstdfdfval.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../rzakc/rzakcmstdfmsgid.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="rbagsinputfldsdefvalues" />
|
|
<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>Input field default values</title>
|
|
</head>
|
|
<body id="rbagsinputfldsdefvalues"><a name="rbagsinputfldsdefvalues"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Input field default values</h1>
|
|
<div><p>You can use these methods to put default values into the input
|
|
fields of your display, which users can override with their own data.</p>
|
|
<ul><li>Getting information from program <p>Never hard code the values as a literal
|
|
if they are language or cultural-dependent values. Use values
|
|
you can get from the system-provided information, such as system or job date,
|
|
or get the values from a data object, such as a database file or data area
|
|
from outside of the program.</p>
|
|
</li>
|
|
<li>Using DDS keywords DFT (Default) or DFTVAL (Default Value) <p>Specify
|
|
the default input value directly on the DDS after the keyword. The DDS keyword
|
|
DFT is for input-only (I) fields. For output-only (O) or input-output (B)
|
|
fields, use the keyword DFTVAL.</p>
|
|
<p>For example:</p>
|
|
<pre>A field-name length type I line pos DFT('default ')
|
|
or
|
|
A field-name length type O/B line pos DFTVAL('default value ')</pre>
|
|
</li>
|
|
<li>Using DDS keyword MSGID (Message Identification) <p>Using the Message
|
|
Identification (MSGID) keyword allows you to retrieve the content of a specified
|
|
message description when the program is run and to put that value as a default
|
|
in your display file field. The field must be input-output capable (B) for
|
|
you to use this technique.</p>
|
|
<p>For example:</p>
|
|
<pre>A field-name length type B line pos MSGID(message-id [*libl/message-file)</pre>
|
|
<p>This allows you to use different message files for each national language
|
|
version by setting the library list accordingly when the program is run.</p>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbagsdispfiledsgngide.htm" title="Application panels typically consist of the major elements in this topic.">Display file design</a></div>
|
|
</div>
|
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
|
<div><a href="../rzakc/rzakcmstdfdft.htm">DFT (Default) keyword</a></div>
|
|
<div><a href="../rzakc/rzakcmstdfdfval.htm">DFTVAL (Default Value) keyword</a></div>
|
|
<div><a href="../rzakc/rzakcmstdfmsgid.htm">MSGID (Message Identifier) keyword</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |