59 lines
4.1 KiB
HTML
59 lines
4.1 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="Conversion between zoned decimal and character or hexadecimal in a DDS file" />
|
|
<meta name="abstract" content="You can convert zoned decimal fields to character or hexadecimal fields and the converse, provided that the field lengths are the same." />
|
|
<meta name="description" content="You can convert zoned decimal fields to character or hexadecimal fields and the converse, provided that the field lengths are the same." />
|
|
<meta name="DC.subject" content="converting between zoned decimal and hexadecimal data types, data types, converting between zoned decimal and hexadecimal data types" />
|
|
<meta name="keywords" content="converting between zoned decimal and hexadecimal data types, data types, converting between zoned decimal and hexadecimal data types" />
|
|
<meta name="DC.Relation" scheme="URI" content="ldata.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="convzdec" />
|
|
<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>Conversion between zoned decimal and character or hexadecimal in a
|
|
DDS file</title>
|
|
</head>
|
|
<body id="convzdec"><a name="convzdec"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Conversion between zoned decimal and character or hexadecimal in a
|
|
DDS file</h1>
|
|
<div><p>You can convert zoned decimal fields to character or hexadecimal
|
|
fields and the converse, provided that the field lengths are the same.</p>
|
|
<p>The data type of the field in your program is the data type specified in
|
|
the logical file. No error occurs in an I/O operation if the data passed contains
|
|
only numeric characters (0 through 9). However, your program cannot send an
|
|
I/O operation that attempts to pass characters other than 0 through 9 from
|
|
a character or hexadecimal field to a zoned decimal field. The operating system
|
|
sends a message and the I/O operation cannot be completed.</p>
|
|
<p>For example, suppose that a field is zoned decimal in the
|
|
physical file. If you specify character type (A) for presentation to your
|
|
programs, you must ensure that the field contains only numeric characters
|
|
(0 through 9) when it is returned through the logical file to the physical
|
|
file.</p>
|
|
<p>In another example, suppose a field is a character field in the physical
|
|
file. If you specify the field as a zoned decimal field and as a key field
|
|
in the logical file, you cannot create the logical file unless all records
|
|
in the physical file contain only numeric characters (0 through 9).</p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="ldata.htm" title="For a physical file, use this position to specify the data type of the field within the database. Specify data type in a logical file only to override or change the data type of the corresponding field in the physical file on which this logical file is based.">Data type for physical and logical files (position 35)</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |