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

103 lines
6.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="CHANGE (Change) keyword for display files" />
<meta name="abstract" content="Use this record- or field-level keyword to set on the specified response indicator for an input operation." />
<meta name="description" content="Use this record- or field-level keyword to set on the specified response indicator for an input operation." />
<meta name="DC.subject" content="CHANGE (Change) keyword" />
<meta name="keywords" content="CHANGE (Change) keyword" />
<meta name="DC.Relation" scheme="URI" content="rzakcmstkeyent.htm" />
<meta name="DC.Relation" scheme="URI" content="s36change.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="rzakcmstdfchng" />
<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>CHANGE (Change) keyword for display files</title>
</head>
<body id="rzakcmstdfchng"><a name="rzakcmstdfchng"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">CHANGE (Change) keyword for display files</h1>
<div><p>Use this record- or field-level keyword to set on the specified
response indicator for an input operation.</p>
<div class="section"><p>This is done under the following conditions:</p>
<ul><li>The keyword is specified at the record level, and any input-capable field
in the record format has its changed data tag (MDT) set on.</li>
<li>The keyword is specified for an input-capable field, and that field has
its changed data tag (MDT) set on.</li>
</ul>
<p>See the <a href="s36env.htm">System/36 environment considerations for display files</a> topic for information about
how to specify the CHANGE keyword in files that are used in the System/36™ environment.</p>
<div class="p">The
format of the keyword is: <pre>CHANGE(response-indicator ['text'])</pre>
</div>
<p>The
MDT of an input-capable field is set on when the display station user keys
into the field, or when your program selects the display attribute (DSPATR(MDT))
keyword for the output operation that displays the field. If the MDT is set
on using the DSPATR(MDT) keyword, the data in the field might not have changed
even though the MDT (and hence the response indicator specified for CHANGE)
is set on. Also, note that the MDT is set on even if the workstation user
keys the same data in the field as was initially displayed (such as typing
into a blank field and then blanking the field).</p>
<div class="note"><span class="notetitle">Note:</span> The CHANGE response
indicator is not set on when a command attention key (CAnn, Help, Print, Home,
or Clear) is pressed.</div>
<p>When the <span class="keyword">i5/OS™</span> operating
system detects validity checking errors and displays the record again with
an error message, any CHANGE keyword response indicators that have been set
on by typing into fields remain on until all validity checks succeed and the
record is passed to your program.</p>
<p>The optional text is included on the
list created at program compilation time to explain the intended use of the
indicator. This text has no function in the file or the program other than
as a comment. The single quotation marks are required. If you specify more
than 50 characters between the single quotation marks, the text is truncated
to 50 characters on the program computer printout.</p>
<p>Option indicators
are not valid for this keyword.</p>
</div>
<div class="example"><h4 class="sectiontitle">Example 1</h4><p>The following example shows how to specify
the CHANGE keyword at the field level.</p>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A FLDX 5 B 8 2CHANGE(67 'FLDX was changed')
A
00020A FLDY 3 I 8 30CHANGE(68 'FLDY was entered')
A</pre>
</div>
<div class="example"><h4 class="sectiontitle">Example 2</h4><p>The following example shows how to specify
the CHANGE keyword at the record level.</p>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A R REC1
00020A CHANGE(88 'A field was changed')
00030A*
00040A FIELD1 10 B 3 2
00050A FIELD2 5 B 5 2
00060A FIELD3 6 B 7 2
00070A FIELD4 3 I 9 2DFT('ABC')
A</pre>
</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="relconcepts"><strong>Related concepts</strong><br />
<div><a href="s36change.htm" title="Use this record-level keyword to indicate that, on an input operation, the record is to be returned to the application program only if the user has changed it.">CHANGE record-level keyword</a></div>
</div>
</div>
</body>
</html>