ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzakb_5.4.0.1/rzakbmstsign.htm

167 lines
9.3 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="SIGNED (Signed) keyword for physical and logical files" />
<meta name="abstract" content="Use this key field-level keyword to specify that when sequencing the values associated with this numeric key field, the operating system is to consider the signs of the values (negative versus positive values)." />
<meta name="description" content="Use this key field-level keyword to specify that when sequencing the values associated with this numeric key field, the operating system is to consider the signs of the values (negative versus positive values)." />
<meta name="DC.subject" content="SIGNED (Signed) keyword" />
<meta name="keywords" content="SIGNED (Signed) keyword" />
<meta name="DC.Relation" scheme="URI" content="rzakbmstlfkeyw.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="sign" />
<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>Physical and Logical Files, SIGNED</title>
</head>
<body id="sign"><a name="sign"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">SIGNED (Signed) keyword for physical and logical files</h1>
<div><p>Use this key field-level keyword to specify that when sequencing
the values associated with this numeric key field, the operating system is
to consider the signs of the values (negative versus positive values).</p>
<div class="section"><p>This keyword has no parameters.</p>
<p>The following example shows
six records with a zoned decimal key field:</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="void" border="0" rules="none"><thead align="left"><tr><th valign="top" width="33.33333333333333%" id="d0e30">Record</th>
<th valign="top" width="33.33333333333333%" id="d0e32">Numeric key field (zoned decimal)</th>
<th valign="top" width="33.33333333333333%" id="d0e34">Hexadecimal representation</th>
</tr>
</thead>
<tbody><tr><td valign="top" width="33.33333333333333%" headers="d0e30 ">1</td>
<td valign="top" width="33.33333333333333%" headers="d0e32 ">98</td>
<td valign="top" width="33.33333333333333%" headers="d0e34 ">F9F8</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e30 ">2</td>
<td valign="top" width="33.33333333333333%" headers="d0e32 ">00</td>
<td valign="top" width="33.33333333333333%" headers="d0e34 ">F0F0</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e30 ">3</td>
<td valign="top" width="33.33333333333333%" headers="d0e32 ">98-</td>
<td valign="top" width="33.33333333333333%" headers="d0e34 ">F9D8</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e30 ">4</td>
<td valign="top" width="33.33333333333333%" headers="d0e32 ">97</td>
<td valign="top" width="33.33333333333333%" headers="d0e34 ">F9F7</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e30 ">5</td>
<td valign="top" width="33.33333333333333%" headers="d0e32 ">20</td>
<td valign="top" width="33.33333333333333%" headers="d0e34 ">F2F0</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e30 ">6</td>
<td valign="top" width="33.33333333333333%" headers="d0e32 ">99</td>
<td valign="top" width="33.33333333333333%" headers="d0e34 ">F9F9</td>
</tr>
</tbody>
</table>
</div>
<p>By default (with no sequencing keywords specified and without the
ALTSEQ keyword), the key field has the SIGNED attribute. The records are sequenced
in the following order:</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="void" border="0" rules="none"><thead align="left"><tr><th valign="top" width="33.33333333333333%" id="d0e88">Record</th>
<th valign="top" width="33.33333333333333%" id="d0e90">Numeric key field (zoned decimal)</th>
<th valign="top" width="33.33333333333333%" id="d0e92">Hexadecimal representation</th>
</tr>
</thead>
<tbody><tr><td valign="top" width="33.33333333333333%" headers="d0e88 ">3</td>
<td valign="top" width="33.33333333333333%" headers="d0e90 ">98-</td>
<td valign="top" width="33.33333333333333%" headers="d0e92 ">F9D8</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e88 ">2</td>
<td valign="top" width="33.33333333333333%" headers="d0e90 ">00</td>
<td valign="top" width="33.33333333333333%" headers="d0e92 ">F0F0</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e88 ">5</td>
<td valign="top" width="33.33333333333333%" headers="d0e90 ">20</td>
<td valign="top" width="33.33333333333333%" headers="d0e92 ">F2F0</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e88 ">4</td>
<td valign="top" width="33.33333333333333%" headers="d0e90 ">97</td>
<td valign="top" width="33.33333333333333%" headers="d0e92 ">F9F7</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e88 ">1</td>
<td valign="top" width="33.33333333333333%" headers="d0e90 ">98</td>
<td valign="top" width="33.33333333333333%" headers="d0e92 ">F9F8</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e88 ">6</td>
<td valign="top" width="33.33333333333333%" headers="d0e90 ">99</td>
<td valign="top" width="33.33333333333333%" headers="d0e92 ">F9F9</td>
</tr>
</tbody>
</table>
</div>
<p>If both SIGNED and DESCEND are specified, the records are sequenced
in this order:</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="void" border="0" rules="none"><thead align="left"><tr><th valign="top" width="33.33333333333333%" id="d0e146">Record</th>
<th valign="top" width="33.33333333333333%" id="d0e148">Numeric key field (zoned decimal)</th>
<th valign="top" width="33.33333333333333%" id="d0e150">Hexadecimal representation</th>
</tr>
</thead>
<tbody><tr><td valign="top" width="33.33333333333333%" headers="d0e146 ">6</td>
<td valign="top" width="33.33333333333333%" headers="d0e148 ">99</td>
<td valign="top" width="33.33333333333333%" headers="d0e150 ">F9F9</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e146 ">1</td>
<td valign="top" width="33.33333333333333%" headers="d0e148 ">98</td>
<td valign="top" width="33.33333333333333%" headers="d0e150 ">F9F8</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e146 ">4</td>
<td valign="top" width="33.33333333333333%" headers="d0e148 ">97</td>
<td valign="top" width="33.33333333333333%" headers="d0e150 ">F9F7</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e146 ">5</td>
<td valign="top" width="33.33333333333333%" headers="d0e148 ">20</td>
<td valign="top" width="33.33333333333333%" headers="d0e150 ">F2F0</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e146 ">2</td>
<td valign="top" width="33.33333333333333%" headers="d0e148 ">00</td>
<td valign="top" width="33.33333333333333%" headers="d0e150 ">F0F0</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e146 ">3</td>
<td valign="top" width="33.33333333333333%" headers="d0e148 ">98-</td>
<td valign="top" width="33.33333333333333%" headers="d0e150 ">F9D8</td>
</tr>
</tbody>
</table>
</div>
<p>This keyword is not valid for a character, date, time, timestamp,
or hexadecimal data type field. You cannot use it with the ABSVAL, DIGIT,
UNSIGNED, or ZONE keywords.</p>
<p>SIGNED (a key field-level keyword) causes
ALTSEQ (a file-level keyword) to be ignored. If you specify SIGNED for a key
field, NOALTSEQ is automatically in effect for that key field even if ALTSEQ
is specified at the file level. This occurs, whether NOALTSEQ is specified.</p>
</div>
<div class="example"><h4 class="sectiontitle">Example</h4><p>The following example shows how to specify
the SIGNED keyword for a physical file.</p>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A R RECORD
00020A FLDA 7S 2
00030A FLDB
00040A K FLDA SIGNED
A</pre>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakbmstlfkeyw.htm" title="This topic lists valid keyword entries for describing physical and logical files. They are typed in positions 45 through 80 (functions).">Keyword entries for physical and logical files (positions 45 through 80)</a></div>
</div>
</div>
</body>
</html>