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

134 lines
7.6 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?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="UNSIGNED (Unsigned) keyword for physical and logical files" />
<meta name="abstract" content="Use this key field-level keyword to specify that numeric fields are sequenced as a string of unsigned binary data. Character, date, time, timestamp, and hexadecimal fields default to unsigned values." />
<meta name="description" content="Use this key field-level keyword to specify that numeric fields are sequenced as a string of unsigned binary data. Character, date, time, timestamp, and hexadecimal fields default to unsigned values." />
<meta name="DC.subject" content="UNSIGNED (Unsigned) keyword" />
<meta name="keywords" content="UNSIGNED (Unsigned) 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="tdunsig" />
<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, UNSIGNED</title>
</head>
<body id="tdunsig"><a name="tdunsig"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">UNSIGNED (Unsigned) keyword for physical and logical files</h1>
<div><p>Use this key field-level keyword to specify that numeric fields
are sequenced as a string of unsigned binary data. Character, date, time,
timestamp, and hexadecimal fields default to unsigned values.</p>
<div class="section"><p>This keyword has no parameters.</p>
<p>UNSIGNED is valid on key
fields in physical or logical files regardless of the data type of the key
field. The UNSIGNED keyword is not allowed with the SIGNED and ABSVAL keywords.</p>
<div class="p">The
UNSIGNED keyword will be the default in the following situations: <ul><li>When you specify ALTSEQ at the file level for a zoned key field</li>
<li>When you specify ZONE or DIGIT for a zoned key field</li>
<li>For all character and hexadecimal fields</li>
</ul>
</div>
<div class="note"><span class="notetitle">Note:</span> You can specify UNSIGNED for floating point fields, but the
results cannot be predicted.</div>
<p>The following figure 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="d0e43">Record</th>
<th valign="top" width="33.33333333333333%" id="d0e45">Numeric key field (zoned decimal)</th>
<th valign="top" width="33.33333333333333%" id="d0e47">Hexadecimal representation</th>
</tr>
</thead>
<tbody><tr><td valign="top" width="33.33333333333333%" headers="d0e43 ">1</td>
<td valign="top" width="33.33333333333333%" headers="d0e45 ">98</td>
<td valign="top" width="33.33333333333333%" headers="d0e47 ">F9F8</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e43 ">2</td>
<td valign="top" width="33.33333333333333%" headers="d0e45 ">00</td>
<td valign="top" width="33.33333333333333%" headers="d0e47 ">F0F0</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e43 ">3</td>
<td valign="top" width="33.33333333333333%" headers="d0e45 ">98-</td>
<td valign="top" width="33.33333333333333%" headers="d0e47 ">F9D8</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e43 ">4</td>
<td valign="top" width="33.33333333333333%" headers="d0e45 ">97</td>
<td valign="top" width="33.33333333333333%" headers="d0e47 ">F9F7</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e43 ">5</td>
<td valign="top" width="33.33333333333333%" headers="d0e45 ">20</td>
<td valign="top" width="33.33333333333333%" headers="d0e47 ">F2F0</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e43 ">6</td>
<td valign="top" width="33.33333333333333%" headers="d0e45 ">99</td>
<td valign="top" width="33.33333333333333%" headers="d0e47 ">F9F9</td>
</tr>
</tbody>
</table>
</div>
<p>If you specify UNSIGNED, 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="d0e101">Record</th>
<th valign="top" width="33.33333333333333%" id="d0e103">Numeric key field (zoned decimal)</th>
<th valign="top" width="33.33333333333333%" id="d0e105">Hexadecimal representation</th>
</tr>
</thead>
<tbody><tr><td valign="top" width="33.33333333333333%" headers="d0e101 ">2</td>
<td valign="top" width="33.33333333333333%" headers="d0e103 ">00</td>
<td valign="top" width="33.33333333333333%" headers="d0e105 ">F0F0</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e101 ">5</td>
<td valign="top" width="33.33333333333333%" headers="d0e103 ">20</td>
<td valign="top" width="33.33333333333333%" headers="d0e105 ">F2F0</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e101 ">3</td>
<td valign="top" width="33.33333333333333%" headers="d0e103 ">98-</td>
<td valign="top" width="33.33333333333333%" headers="d0e105 ">F9D8</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e101 ">4</td>
<td valign="top" width="33.33333333333333%" headers="d0e103 ">97</td>
<td valign="top" width="33.33333333333333%" headers="d0e105 ">F9F7</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e101 ">1</td>
<td valign="top" width="33.33333333333333%" headers="d0e103 ">98</td>
<td valign="top" width="33.33333333333333%" headers="d0e105 ">F9F8</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e101 ">6</td>
<td valign="top" width="33.33333333333333%" headers="d0e103 ">99</td>
<td valign="top" width="33.33333333333333%" headers="d0e105 ">F9F9</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="example"><h4 class="sectiontitle">Example</h4><p>The following example shows how to specify
the UNSIGNED keyword for a physical file.</p>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A R RECORDA
00020A FLDA 7S 2
00030A FLDB 5
00040A K FLDA UNSIGNED
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>