ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzakd_5.4.0.1/rzakdmstpttime.htm

76 lines
4.4 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="TIME (Time) keyword in printer files" />
<meta name="abstract" content="This field-level keyword prints the current system time as a constant field 6 bytes long." />
<meta name="description" content="This field-level keyword prints the current system time as a constant field 6 bytes long." />
<meta name="DC.subject" content="TIME (Time) keyword" />
<meta name="keywords" content="TIME (Time) keyword" />
<meta name="DC.Relation" scheme="URI" content="rzakdmstprkey.htm" />
<meta name="DC.Relation" scheme="URI" content="constantfields.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="rzakdmstpttime" />
<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>TIME (Time) keyword in printer files</title>
</head>
<body id="rzakdmstpttime"><a name="rzakdmstpttime"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">TIME (Time) keyword in printer files</h1>
<div><p>This field-level keyword prints the current system time as a constant
field 6 bytes long.</p>
<div class="section"><p><img src="./delta.gif" alt="Start of change" />You can specify the location of the field, or name
the field with the special name *NONE if the POSITION (Position) keyword is
used in the record to specify the location of the fields. Also, you can specify
the TIME keyword, and optionally, you can specify the EDTCDE, EDTWRD, COLOR,
HIGHLIGHT, CHRSIZ, FONT, UNDERLINE, or TEXT keyword. Positions 17 through
38 must be blank.<img src="./deltaend.gif" alt="End of change" /></p>
<p>This keyword has no parameters.</p>
<p>The edit word
'0_:__:__' (_ represents a blank) is assumed for a TIME field. You
can specify another edit word or one of the user-defined edit codes (5 through
9) to change the IBM-supplied editing.</p>
<p>Option indicators are not valid
for this keyword, although you can use option indicators to condition the
field specified.</p>
</div>
<div class="section"><h4 class="sectiontitle">Example</h4><p>The following example shows how to specify
the TIME keyword.</p>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A 20 1 56TIME
00020A 21 1 56TIME
A EDTWRD('0 &amp;HRS&amp;; &amp;MINS&amp;; &amp;SECS')
A</pre>
<p>If the system time is 110645, the time prints as follows:</p>
<ul><li>If option indicator 20 is on, the time prints as <pre>11:06:45</pre>
</li>
<li>If option indicator 21 is on (and option indicator 20 is off), the time
prints as <pre>11 HRS 06 MINS 45 SECS</pre>
</li>
</ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakdmstprkey.htm" title="See the valid keyword entries for defining printer files in this topic.">Keyword entries for printer files (positions 45 through 80)</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="constantfields.htm" title="Constant fields are unnamed fields (positions 19 through 28 must be blank), or fields with a special name (*NONE) when POSITION (Position) keyword is used in the record.">Constant fields in printer files</a></div>
</div>
</div>
</body>
</html>