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

99 lines
5.9 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="SFLNXTCHG (Subfile Next Changed) keyword for display files" />
<meta name="abstract" content="Use this record-level keyword on the subfile record format to force the workstation user to correct program-detected typing errors in subfile records that have been read by the program." />
<meta name="description" content="Use this record-level keyword on the subfile record format to force the workstation user to correct program-detected typing errors in subfile records that have been read by the program." />
<meta name="DC.subject" content="SFLNXTCHG (Subfile Next Changed) keyword, Subfile Next Changed (SFLNXTCHG) keyword" />
<meta name="keywords" content="SFLNXTCHG (Subfile Next Changed) keyword, Subfile Next Changed (SFLNXTCHG) 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="rzakcmstdfsfnch" />
<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>SFLNXTCHG (Subfile Next Changed) keyword for display files</title>
</head>
<body id="rzakcmstdfsfnch"><a name="rzakcmstdfsfnch"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">SFLNXTCHG (Subfile Next Changed) keyword for display files</h1>
<div><p>Use this record-level keyword on the subfile record format to force
the workstation user to correct program-detected typing errors in subfile
records that have been read by the program.</p>
<div class="section"><p>It does this by causing a record to be changed so that a get-next-changed
operation must read the record as described in the following section.</p>
<p>This
keyword has no parameters.</p>
</div>
<div class="section"><h4 class="sectiontitle">Subfile operations with SFLNXTCHG</h4><p>A typical use
of SFLNXTCHG can be as follows:</p>
<p>A workstation user changes some records
in a displayed subfile (this can be for a data-entry application or a data-update
application). After changing some records, the workstation user presses the
Enter key, and the program reads only the changed records with get-next-changed
operations. (For example, READC in RPG III and READ-SUBFILE-NEXT-MODIFIED
in COBOL.)</p>
<p>If the program detects typing errors in the changed records,
it can send update operations (UPDATE in RPG IV, REWRITE SUBFILE in COBOL)
to the subfile records in error, setting indicators so that SFLNXTCHG is in
effect during the update operations. These update operations are sent to the
subfile record format.</p>
<p>After all the records in error have been updated,
the program sends an input/output operation to the subfile control record
format to display the subfile again.</p>
<p>With the subfile displayed again,
the workstation user types the data again and presses the Enter key. If the
data is correct, the program does not display the subfile again.</p>
<p>The
records in error (and any other records changed by the workstation user) are
returned to the program on the next get-next-changed operation. This is because
SFLNXTCHG caused the subfile records to be considered changed even though
the workstation user did not change them. This allows the program to prohibit
the workstation user from ignoring program-detected typing errors in subfile
records.</p>
</div>
<div class="section"><h4 class="sectiontitle">Subfile operations without SFLNXTCHG</h4><p>If SFLNXTCHG
is not specified, or is specified but not selected on the update operations
to the subfile records, then the workstation user can press the
Enter key instead of correcting the program-detected errors. The program then
reads no records because the get-next-changed operations find no changed records
the second time the Enter key is pressed.</p>
<p>Option indicators are valid
for this keyword.</p>
<p>You cannot specify SFLNXTCHG with the SFLMSGRCD keyword.</p>
</div>
<div class="example"><h4 class="sectiontitle">Example</h4><p>The following example shows how to specify
the SFLNXTCHG keyword.</p>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A R SFLR SFL
00020A 14 SFLNXTCHG
A*
A* (at least one input-capable field should be specified)
A*
00040A R SFLCTLR SFLCTL(SFLR)
00050A SFLPAG(17)
00060A SFLSIZ(17)
00070A SFLDSP SFLDSPCTL
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>
</body>
</html>