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

355 lines
25 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="DATFMT (Date Format) keyword for physical and logical files" />
<meta name="abstract" content="Use this field-level keyword to specify the format of a date field. This keyword is valid only for date fields (data type L) or for logical file zoned fields (data type S), packed fields (data type P), or character fields (data type A) whose corresponding physical file fields are date fields (data type L)." />
<meta name="description" content="Use this field-level keyword to specify the format of a date field. This keyword is valid only for date fields (data type L) or for logical file zoned fields (data type S), packed fields (data type P), or character fields (data type A) whose corresponding physical file fields are date fields (data type L)." />
<meta name="DC.subject" content="DATFMT (Date Format) keyword, Date Format (DATFMT) keyword" />
<meta name="keywords" content="DATFMT (Date Format) keyword, Date Format (DATFMT) 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="tddatfm" />
<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, DATFMT</title>
</head>
<body id="tddatfm"><a name="tddatfm"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">DATFMT (Date Format) keyword for physical and logical files </h1>
<div><p>Use this field-level keyword to specify the format of a date field.
This keyword is valid only for date fields (data type L) or for logical file
zoned fields (data type S), packed fields (data type P), or character fields
(data type A) whose corresponding physical file fields are date fields (data
type L).</p>
<div class="section"><div class="p">The format of the keyword is: <pre>DATFMT(date-format)</pre>
</div>
<p>The date-format parameter specifies the format for the
date. The following table describes the valid date formats and their default
separator values for physical file fields.</p>
<table cellpadding="4" cellspacing="0" border="1" class="tableborder"><tr><td>
<table cellpadding="4" cellspacing="0" summary="" width="100%" border="0"><thead align="left"><tr><th align="left" valign="bottom" width="32.577903682719544%" id="d0e36">Format name</th>
<th align="left" valign="bottom" width="23.512747875354105%" id="d0e38">Date format parameter</th>
<th align="left" valign="bottom" width="21.246458923512748%" id="d0e40">Date format and separator</th>
<th align="left" valign="bottom" width="10.198300283286118%" id="d0e42">Field length</th>
<th align="left" valign="bottom" width="12.464589235127479%" id="d0e44">Example</th>
</tr>
</thead>
<tbody><tr><td align="left" valign="top" width="32.577903682719544%" headers="d0e36 ">Job Default</td>
<td align="left" valign="top" width="23.512747875354105%" headers="d0e38 ">*JOB<sup>1</sup></td>
<td align="left" valign="top" width="21.246458923512748%" headers="d0e40 ">&nbsp;</td>
<td align="left" valign="top" width="10.198300283286118%" headers="d0e42 ">&nbsp;</td>
<td align="left" valign="top" width="12.464589235127479%" headers="d0e44 ">&nbsp;</td>
</tr>
<tr><td align="left" valign="top" width="32.577903682719544%" headers="d0e36 ">Month/Day/Year</td>
<td align="left" valign="top" width="23.512747875354105%" headers="d0e38 ">*MDY<sup>1</sup></td>
<td align="left" valign="top" width="21.246458923512748%" headers="d0e40 ">mm/dd/yy</td>
<td align="left" valign="top" width="10.198300283286118%" headers="d0e42 ">8</td>
<td align="left" valign="top" width="12.464589235127479%" headers="d0e44 ">06/21/90</td>
</tr>
<tr><td align="left" valign="top" width="32.577903682719544%" headers="d0e36 ">Day/Month/Year</td>
<td align="left" valign="top" width="23.512747875354105%" headers="d0e38 ">*DMY<sup>1</sup></td>
<td align="left" valign="top" width="21.246458923512748%" headers="d0e40 ">dd/mm/yy</td>
<td align="left" valign="top" width="10.198300283286118%" headers="d0e42 ">8</td>
<td align="left" valign="top" width="12.464589235127479%" headers="d0e44 ">21/06/90</td>
</tr>
<tr><td align="left" valign="top" width="32.577903682719544%" headers="d0e36 ">Year/Month/Day</td>
<td align="left" valign="top" width="23.512747875354105%" headers="d0e38 ">*YMD<sup>1</sup></td>
<td align="left" valign="top" width="21.246458923512748%" headers="d0e40 ">yy/mm/dd</td>
<td align="left" valign="top" width="10.198300283286118%" headers="d0e42 ">8</td>
<td align="left" valign="top" width="12.464589235127479%" headers="d0e44 ">90/06/21</td>
</tr>
<tr><td align="left" valign="top" width="32.577903682719544%" headers="d0e36 ">Julian</td>
<td align="left" valign="top" width="23.512747875354105%" headers="d0e38 ">*JUL<sup>1</sup></td>
<td align="left" valign="top" width="21.246458923512748%" headers="d0e40 ">yy/ddd</td>
<td align="left" valign="top" width="10.198300283286118%" headers="d0e42 ">6</td>
<td align="left" valign="top" width="12.464589235127479%" headers="d0e44 ">90/172</td>
</tr>
<tr><td align="left" valign="top" width="32.577903682719544%" headers="d0e36 "><p>International<br />
Standards Organization</p>
</td>
<td align="left" valign="top" width="23.512747875354105%" headers="d0e38 ">*ISO</td>
<td align="left" valign="top" width="21.246458923512748%" headers="d0e40 ">yyyy-mm-dd</td>
<td align="left" valign="top" width="10.198300283286118%" headers="d0e42 ">10</td>
<td align="left" valign="top" width="12.464589235127479%" headers="d0e44 ">1990-06-21</td>
</tr>
<tr><td align="left" valign="top" width="32.577903682719544%" headers="d0e36 ">IBM<sup>®</sup> USA Standard</td>
<td align="left" valign="top" width="23.512747875354105%" headers="d0e38 ">*USA</td>
<td align="left" valign="top" width="21.246458923512748%" headers="d0e40 ">mm/dd/yyyy</td>
<td align="left" valign="top" width="10.198300283286118%" headers="d0e42 ">10</td>
<td align="left" valign="top" width="12.464589235127479%" headers="d0e44 ">06/21/1990</td>
</tr>
<tr><td align="left" valign="top" width="32.577903682719544%" headers="d0e36 ">IBM European Standard</td>
<td align="left" valign="top" width="23.512747875354105%" headers="d0e38 ">*EUR</td>
<td align="left" valign="top" width="21.246458923512748%" headers="d0e40 ">dd.mm.yyyy</td>
<td align="left" valign="top" width="10.198300283286118%" headers="d0e42 ">10</td>
<td align="left" valign="top" width="12.464589235127479%" headers="d0e44 ">21.06.1990</td>
</tr>
<tr><td align="left" valign="top" width="32.577903682719544%" headers="d0e36 "><p>Japanese Industrial<br />
Standard Christian Era</p>
</td>
<td align="left" valign="top" width="23.512747875354105%" headers="d0e38 ">*JIS</td>
<td align="left" valign="top" width="21.246458923512748%" headers="d0e40 ">yyyy-mm-dd</td>
<td align="left" valign="top" width="10.198300283286118%" headers="d0e42 ">10</td>
<td align="left" valign="top" width="12.464589235127479%" headers="d0e44 ">1990-06-21</td>
</tr>
<tr><td colspan="5" align="left" valign="top" headers="d0e36 d0e38 d0e40 d0e42 d0e44 "><div class="note"><span class="notetitle">Note:</span> If
this format is specified and the field allows the null value, you must specify
a valid date for the DFT keyword for this field.</div>
</td>
</tr>
</tbody>
</table>
</td></tr></table>
<div class="p">Other attributes of the DATFMT keyword for
physical file fields are: <ul><li>You can specify only the DATFMT keyword on the date (L) data type.</li>
<li>If you do not specify the DATFMT keyword, the default is *ISO.</li>
<li>Field length values and decimal position values must be blank.</li>
</ul>
</div>
</div>
<div class="section"><p>The following table describes the valid
date formats and their default separator values for logical files.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="border" border="1" rules="all"><thead align="left"><tr><th align="left" valign="top" width="26.71957671957672%" id="d0e186">Format name</th>
<th align="left" valign="top" width="15.079365079365079%" id="d0e188">Date format parameter</th>
<th align="left" valign="top" width="12.16931216931217%" id="d0e190">Date format</th>
<th align="left" valign="top" width="10.846560846560847%" id="d0e192">Zoned or character field length</th>
<th align="left" valign="top" width="10.582010582010582%" id="d0e194">Zoned or character example</th>
<th align="left" valign="top" width="10.846560846560847%" id="d0e196">Packed field length</th>
<th align="left" valign="top" width="13.756613756613756%" id="d0e198">Packed example (in Hex)</th>
</tr>
</thead>
<tbody><tr><td align="left" valign="top" width="26.71957671957672%" headers="d0e186 ">Job default</td>
<td align="left" valign="top" width="15.079365079365079%" headers="d0e188 ">*JOB</td>
<td valign="top" width="12.16931216931217%" headers="d0e190 ">&nbsp;</td>
<td valign="top" width="10.846560846560847%" headers="d0e192 ">&nbsp;</td>
<td valign="top" width="10.582010582010582%" headers="d0e194 ">&nbsp;</td>
<td valign="top" width="10.846560846560847%" headers="d0e196 ">&nbsp;</td>
<td valign="top" width="13.756613756613756%" headers="d0e198 ">&nbsp;</td>
</tr>
<tr><td align="left" valign="top" width="26.71957671957672%" headers="d0e186 ">Month/Day/Year</td>
<td align="left" valign="top" width="15.079365079365079%" headers="d0e188 ">*MDY</td>
<td align="left" valign="top" width="12.16931216931217%" headers="d0e190 ">mmddyy</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e192 ">6,0</td>
<td align="left" valign="top" width="10.582010582010582%" headers="d0e194 ">062196</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e196 ">6,0 or 7,0</td>
<td align="left" valign="top" width="13.756613756613756%" headers="d0e198 ">'0062196F'X</td>
</tr>
<tr><td align="left" valign="top" width="26.71957671957672%" headers="d0e186 ">Day/Month/Year</td>
<td align="left" valign="top" width="15.079365079365079%" headers="d0e188 ">*DMY</td>
<td align="left" valign="top" width="12.16931216931217%" headers="d0e190 ">ddmmyy</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e192 ">6,0</td>
<td align="left" valign="top" width="10.582010582010582%" headers="d0e194 ">210696</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e196 ">6,0 or 7,0</td>
<td align="left" valign="top" width="13.756613756613756%" headers="d0e198 ">'0210696F'X</td>
</tr>
<tr><td align="left" valign="top" width="26.71957671957672%" headers="d0e186 ">Year/Month/Day</td>
<td align="left" valign="top" width="15.079365079365079%" headers="d0e188 ">*YMD</td>
<td align="left" valign="top" width="12.16931216931217%" headers="d0e190 ">yymmdd</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e192 ">6,0</td>
<td align="left" valign="top" width="10.582010582010582%" headers="d0e194 ">960621</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e196 ">6,0 or 7,0</td>
<td align="left" valign="top" width="13.756613756613756%" headers="d0e198 ">'0960621F'X</td>
</tr>
<tr><td align="left" valign="top" width="26.71957671957672%" headers="d0e186 ">Month/Day/Year (4 digit year)</td>
<td align="left" valign="top" width="15.079365079365079%" headers="d0e188 ">*MDYY<sup>1</sup></td>
<td align="left" valign="top" width="12.16931216931217%" headers="d0e190 ">mmddyyyy</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e192 ">8,0</td>
<td align="left" valign="top" width="10.582010582010582%" headers="d0e194 ">06211996</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e196 ">8,0 or 9,0</td>
<td align="left" valign="top" width="13.756613756613756%" headers="d0e198 ">'006211996F'X</td>
</tr>
<tr><td align="left" valign="top" width="26.71957671957672%" headers="d0e186 ">Day/Month/Year (4 digit year)</td>
<td align="left" valign="top" width="15.079365079365079%" headers="d0e188 ">*DMYY<sup>1</sup></td>
<td align="left" valign="top" width="12.16931216931217%" headers="d0e190 ">ddmmyyyy</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e192 ">8,0</td>
<td align="left" valign="top" width="10.582010582010582%" headers="d0e194 ">21061996</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e196 ">8,0 or 9,0</td>
<td align="left" valign="top" width="13.756613756613756%" headers="d0e198 ">'021062006F'X</td>
</tr>
<tr><td align="left" valign="top" width="26.71957671957672%" headers="d0e186 ">Year/Month/Day (digit year)</td>
<td align="left" valign="top" width="15.079365079365079%" headers="d0e188 ">*YYMD<sup>1</sup></td>
<td align="left" valign="top" width="12.16931216931217%" headers="d0e190 ">yyyymmdd</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e192 ">8,0</td>
<td align="left" valign="top" width="10.582010582010582%" headers="d0e194 ">19960621</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e196 ">8,0 or 9,0</td>
<td align="left" valign="top" width="13.756613756613756%" headers="d0e198 ">'019960621F'X</td>
</tr>
<tr><td align="left" valign="top" width="26.71957671957672%" headers="d0e186 ">Julian</td>
<td align="left" valign="top" width="15.079365079365079%" headers="d0e188 ">*JUL</td>
<td align="left" valign="top" width="12.16931216931217%" headers="d0e190 ">yyddd</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e192 ">5,0</td>
<td align="left" valign="top" width="10.582010582010582%" headers="d0e194 ">96172</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e196 ">5,0</td>
<td align="left" valign="top" width="13.756613756613756%" headers="d0e198 ">'96172F'X</td>
</tr>
<tr><td align="left" valign="top" width="26.71957671957672%" headers="d0e186 ">Julian (4 digit year)</td>
<td align="left" valign="top" width="15.079365079365079%" headers="d0e188 ">*LONGJUL<sup>1</sup></td>
<td align="left" valign="top" width="12.16931216931217%" headers="d0e190 ">yyyyddd</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e192 ">7,0</td>
<td align="left" valign="top" width="10.582010582010582%" headers="d0e194 ">1996172</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e196 ">7,0</td>
<td align="left" valign="top" width="13.756613756613756%" headers="d0e198 ">'1996172F'X</td>
</tr>
<tr><td align="left" valign="top" width="26.71957671957672%" headers="d0e186 ">Century/Day/Month/Year</td>
<td align="left" valign="top" width="15.079365079365079%" headers="d0e188 ">*CMDY<sup>1</sup></td>
<td align="left" valign="top" width="12.16931216931217%" headers="d0e190 ">cmmddyy</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e192 ">7,0</td>
<td align="left" valign="top" width="10.582010582010582%" headers="d0e194 ">0062196</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e196 ">7,0</td>
<td align="left" valign="top" width="13.756613756613756%" headers="d0e198 ">'0062196F'X</td>
</tr>
<tr><td align="left" valign="top" width="26.71957671957672%" headers="d0e186 ">Century/Day/Month/Year</td>
<td align="left" valign="top" width="15.079365079365079%" headers="d0e188 ">*CDMY<sup>1</sup></td>
<td align="left" valign="top" width="12.16931216931217%" headers="d0e190 ">cddmmyy</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e192 ">7,0</td>
<td align="left" valign="top" width="10.582010582010582%" headers="d0e194 ">1210696</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e196 ">7,0</td>
<td align="left" valign="top" width="13.756613756613756%" headers="d0e198 ">'1210696F'X</td>
</tr>
<tr><td align="left" valign="top" width="26.71957671957672%" headers="d0e186 ">Century/Year/Month/Day</td>
<td align="left" valign="top" width="15.079365079365079%" headers="d0e188 ">*CYMD<sup>1</sup></td>
<td align="left" valign="top" width="12.16931216931217%" headers="d0e190 ">cyymmdd</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e192 ">7,0</td>
<td align="left" valign="top" width="10.582010582010582%" headers="d0e194 ">1960621</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e196 ">7,0</td>
<td align="left" valign="top" width="13.756613756613756%" headers="d0e198 ">'1960621F'X</td>
</tr>
<tr><td align="left" valign="top" width="26.71957671957672%" headers="d0e186 ">Month/Year</td>
<td align="left" valign="top" width="15.079365079365079%" headers="d0e188 ">*MY<sup>1</sup>,<sup>2</sup></td>
<td align="left" valign="top" width="12.16931216931217%" headers="d0e190 ">mmyy</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e192 ">4,0</td>
<td align="left" valign="top" width="10.582010582010582%" headers="d0e194 ">0696</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e196 ">4,0 or 5,0</td>
<td align="left" valign="top" width="13.756613756613756%" headers="d0e198 ">'00696F'X</td>
</tr>
<tr><td align="left" valign="top" width="26.71957671957672%" headers="d0e186 ">Year/Month</td>
<td align="left" valign="top" width="15.079365079365079%" headers="d0e188 ">*YM<sup>1</sup>,<sup>2</sup></td>
<td align="left" valign="top" width="12.16931216931217%" headers="d0e190 ">yymm</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e192 ">4,0</td>
<td align="left" valign="top" width="10.582010582010582%" headers="d0e194 ">9606</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e196 ">4,0 or 5,0</td>
<td align="left" valign="top" width="13.756613756613756%" headers="d0e198 ">'09606F'X</td>
</tr>
<tr><td align="left" valign="top" width="26.71957671957672%" headers="d0e186 ">Month/Year (4 digit year)</td>
<td align="left" valign="top" width="15.079365079365079%" headers="d0e188 ">*MYY<sup>1</sup>,<sup>2</sup></td>
<td align="left" valign="top" width="12.16931216931217%" headers="d0e190 ">mmyyyy</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e192 ">6,0</td>
<td align="left" valign="top" width="10.582010582010582%" headers="d0e194 ">061996</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e196 ">6,0 or 7,0</td>
<td align="left" valign="top" width="13.756613756613756%" headers="d0e198 ">'0061996F'X</td>
</tr>
<tr><td align="left" valign="top" width="26.71957671957672%" headers="d0e186 ">Year/Month (4 digit year)</td>
<td align="left" valign="top" width="15.079365079365079%" headers="d0e188 ">*YYM<sup>1</sup>,<sup>2</sup></td>
<td align="left" valign="top" width="12.16931216931217%" headers="d0e190 ">yyyymm</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e192 ">6,0</td>
<td align="left" valign="top" width="10.582010582010582%" headers="d0e194 ">199606</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e196 ">6,0 or 7,0</td>
<td align="left" valign="top" width="13.756613756613756%" headers="d0e198 ">'0199606F'X</td>
</tr>
<tr><td align="left" valign="top" width="26.71957671957672%" headers="d0e186 ">International Standards Organization</td>
<td align="left" valign="top" width="15.079365079365079%" headers="d0e188 ">*ISO</td>
<td align="left" valign="top" width="12.16931216931217%" headers="d0e190 ">yyyymmdd</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e192 ">8,0</td>
<td align="left" valign="top" width="10.582010582010582%" headers="d0e194 ">19960621</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e196 ">8,0 or 9,0</td>
<td align="left" valign="top" width="13.756613756613756%" headers="d0e198 ">'019960621F'X</td>
</tr>
<tr><td align="left" valign="top" width="26.71957671957672%" headers="d0e186 ">IBM USA Standard</td>
<td align="left" valign="top" width="15.079365079365079%" headers="d0e188 ">*USA</td>
<td align="left" valign="top" width="12.16931216931217%" headers="d0e190 ">mmddyyyy</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e192 ">8,0</td>
<td align="left" valign="top" width="10.582010582010582%" headers="d0e194 ">19960621</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e196 ">8,0 or 9,0</td>
<td align="left" valign="top" width="13.756613756613756%" headers="d0e198 ">'006211996F'X</td>
</tr>
<tr><td align="left" valign="top" width="26.71957671957672%" headers="d0e186 ">IBM European Standard</td>
<td align="left" valign="top" width="15.079365079365079%" headers="d0e188 ">*EUR</td>
<td align="left" valign="top" width="12.16931216931217%" headers="d0e190 ">ddmmyyyy</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e192 ">8,0</td>
<td align="left" valign="top" width="10.582010582010582%" headers="d0e194 ">21061996</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e196 ">8,0 or 9,0</td>
<td align="left" valign="top" width="13.756613756613756%" headers="d0e198 ">'021061996F'X</td>
</tr>
<tr><td align="left" valign="top" width="26.71957671957672%" headers="d0e186 ">Japanese Industrial Standard Christian Era</td>
<td align="left" valign="top" width="15.079365079365079%" headers="d0e188 ">*JIS</td>
<td align="left" valign="top" width="12.16931216931217%" headers="d0e190 ">yyyymmdd</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e192 ">8,0</td>
<td align="left" valign="top" width="10.582010582010582%" headers="d0e194 ">19960621</td>
<td align="left" valign="top" width="10.846560846560847%" headers="d0e196 ">8,0 or 9,0</td>
<td align="left" valign="top" width="13.756613756613756%" headers="d0e198 ">'019960621F'X</td>
</tr>
<tr><td colspan="7" align="left" valign="top" headers="d0e186 d0e188 d0e190 d0e192 d0e194 d0e196 d0e198 "><div class="note"><span class="notetitle">Notes:</span> <ol><li>These DATFMTs are not valid for the date (L) type field. They are only
valid on logical file zoned, packed, or character types having a physical
file based on date type fields.</li>
<li>DATFMTs that do not have any "days" specified are implied to be day 1
of the specified month.</li>
</ol>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="p">Other attributes of the DATFMT keyword specified for logical file
fields are: <ul><li>The packed (P), zoned (S), character (A), and date (L) data types for
logical file fields allow the DATFMT keyword.</li>
<li>Field length can be specified for packed, character, and zoned logical
file fields, but must be a valid value listed in the table.</li>
<li>If you do not specify the DATFMT keyword and the data type is L, the default
is the date format and field length from the corresponding physical file field.</li>
<li>For packed and zoned data types, the decimal positions (positions 36 and
37) must be blank.</li>
<li>For the packed data type, two lengths are sometimes allowed for a particular
format. The larger length is better from a performance perspective. If you
do not specify a length, the smaller length is used as the default.</li>
</ul>
</div>
<div class="p">Attributes of the DATFMT keyword that apply
to both physical file fields and logical file fields include the following
situations: <ul><li>If you specify *JOB, the default is the job attribute and the field length
and is based on the job attribute without separators.</li>
<li>If the DFT keyword is not specified, the default value is the current
date.</li>
<li>If you specify the *ISO, *USA, *EUR, or *JIS value, you cannot specify
the DATSEP keyword. These date formats have a fixed separator.</li>
<li>The DATFMT keyword overrides the job attribute for a date field. It does
not change the system default.</li>
</ul>
</div>
</div>
<div class="example"><h4 class="sectiontitle">Example</h4><p>The following example shows how to specify
the DATFMT keyword.</p>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A
00020A R RECORD
00030A DATFLD1 L DATFMT(*JUL)
00040A DATFLD2 L DATFMT(*EUR)
A</pre>
<p>If the current date is June 21, 1990, the current system
date format value is MDY, and the current system separator is /, DATFLD1 contains
90/172 (the 172nd day of the year 1990). DATFLD2 contains 21.06.1990.</p>
</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>