ibm-information-center/dist/eclipse/plugins/i5OS.ic.dm_5.4.0.1/rbal3predt.htm

60 lines
4.1 KiB
HTML
Raw Permalink 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="copyright" content="(C) Copyright IBM Corporation 2005" />
<meta name="DC.rights.owner" content="(C) Copyright IBM Corporation 2005" />
<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="Prevent date, time, and timestamp errors when copying files" />
<meta name="abstract" content="For FMTOPT(*MAP), FROMKEY with *BLDKEY, TOKEY with *BLDKEY, and INCREL parameters, 2-digit year-date fields or values will be assumed to have a century of 19 if the year is in the range from 40 to 99, or a century of 20 if the year is in the range from 00 to 39." />
<meta name="description" content="For FMTOPT(*MAP), FROMKEY with *BLDKEY, TOKEY with *BLDKEY, and INCREL parameters, 2-digit year-date fields or values will be assumed to have a century of 19 if the year is in the range from 40 to 99, or a century of 20 if the year is in the range from 00 to 39." />
<meta name="DC.Relation" scheme="URI" content="rbal3preerr.htm" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbal3predt" />
<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>Prevent date, time, and timestamp errors when copying files</title>
</head>
<body id="rbal3predt"><a name="rbal3predt"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Prevent date, time, and timestamp errors when copying files</h1>
<div><p>For FMTOPT(*MAP), FROMKEY with *BLDKEY, TOKEY with *BLDKEY, and
INCREL parameters, 2-digit year-date fields or values will be assumed to have
a century of 19 if the year is in the range from 40 to 99, or a century of
20 if the year is in the range from 00 to 39.</p>
<p> For example, 12/31/91 is considered December 31, 1991, while 12/31/38
is considered December 31, 2038.</p>
<p>However, any from-files containing 2-digit year-date fields with actual
internal date values outside the range January 1, 1940 to December 31, 2039
cause input mapping errors, and the copy operation fails.</p>
<p>When FMTOPT(*MAP) is used to convert or copy a from-file field date value
in a 4-digit year form to a 2-digit year form, the from-file field value must
be within the range of January 1, 1940 to December 31, 2039. Otherwise, a
mapping error occurs, and the copy command sets the to-file field with its
default value.</p>
<p>Likewise, when using a 4-digit year date as a record selection input string
on FROMKEY with *BLDKEY or TOKEY with *BLDKEY, the value must be within the
same range if the corresponding from-file field is a date field with a 2-digit
year-date. Otherwise, an error occurs. INCREL record selection is the exception
to this rule, as 4-digit year date values outside this range might be used for
corresponding 2-digit year-date fields.</p>
<p>See <a href="rbal3mapping.htm#rbal3mapping">Map considerations using Copy</a> for details about
how to handle different field types and formats.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal3preerr.htm" title="You can prevent many copy errors when you plan for certain conditions and situations ahead of time.">Prevent errors when copying files</a></div>
</div>
</div>
</body>
</html>