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

91 lines
5.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="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="DATE (Date) keyword for display files" />
<meta name="abstract" content="Use this field-level keyword to display the current date as a constant (output-only) field." />
<meta name="description" content="Use this field-level keyword to display the current date as a constant (output-only) field." />
<meta name="DC.subject" content="DATE (Date) keyword" />
<meta name="keywords" content="DATE (Date) 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="rzakcmstdfdate" />
<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>DATE (Date) keyword for display files</title>
</head>
<body id="rzakcmstdfdate"><a name="rzakcmstdfdate"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">DATE (Date) keyword for display files</h1>
<div><p>Use this field-level keyword to display the current date as a constant
(output-only) field.</p>
<div class="section"><p>You can specify the location of the field, the DATE keyword, and,
optionally, EDTCDE , EDTWRD, COLOR, DSPATR, or TEXT keywords. Positions 17
through 38 must be blank.</p>
<p>The format of the keyword is:</p>
<pre>DATE([*JOB|*SYS] [*Y|*YY])</pre>
<p>The *JOB value causes the current job date to be displayed.
If you do not specify a parameter, the parameter is set to *JOB as default.
The *SYS parameter displays the current system date.</p>
<p>If
you specify *Y, 2 digits are used to represent the year in the date format
that the job attribute DATFMT designates. If you specify *YY, 4 digits are
used to represent the year in the date format that the job attribute DATFMT
designates. If you do not specify a parameter, the parameter is set to *Y
as default.</p>
<p>The W edit code on the EDTCDE keyword returns a correctly
formatted date only if a four digit year (*YY) is requested, and the job attribute
DATFMT is YMD.</p>
<div class="p">If you specify EDTCDE(Y) on a field with the DATE keyword,
separators are added according to the date format that the DATFMT job attribute
designates. For example, using EDTCDE(Y) when the DATFMT job attribute specifies
*MDY changes the date from <pre>mmddyy</pre>
to <pre>mm/dd/yy.</pre>
</div>
<p>The
date separator is retrieved from the job attribute DATSEP at run time, and
the job attribute DATFMT determines the order of the month, day, and year.
(DATFMT can be MDY, DMY, YMD, or JUL, where M=month, D=day, Y=year, and JUL=Julian.
DATSEP can be a slash (/), dash (-), period (.), or comma (,).)</p>
<p>The
field length is dependent on the following conditions:</p>
<ol><li>The format that the DATFMT job attribute specifies.</li>
<li>Whether the date field includes separators. The EDTCDE(Y) keyword controls
separators.</li>
<li>The number of digits used to represent the year. The *Y and *YY parameters
on the DATE keyword control the number of year digits.</li>
</ol>
<p>Option indicators are not valid for this keyword, although option
indicators can be used to condition the field on which it is specified.</p>
</div>
<div class="example"><h4 class="sectiontitle">Example</h4><p>The following example shows how to specify
the DATE keyword.</p>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A 20 1 56DATE(*SYS)
00020A 21 1 56DATE(*Y) EDTCDE(Y)
A</pre>
<p>Option indicator 20 causes the system date to be displayed
without editing if it is on. Dates with 2 digit years are displayed with editing
if option indicator 20 is off and option indicator 21 is on.</p>
</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>