98 lines
5.4 KiB
HTML
98 lines
5.4 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="reference" />
|
|
<meta name="DC.Title" content="EDTCDE (Edit Code) keyword in printer files" />
|
|
<meta name="abstract" content="Use this keyword to edit output-capable numeric fields." />
|
|
<meta name="description" content="Use this keyword to edit output-capable numeric fields." />
|
|
<meta name="DC.subject" content="EDTCDE (Edit Code) keyword, Edit Code (EDTCDE) keyword" />
|
|
<meta name="keywords" content="EDTCDE (Edit Code) keyword, Edit Code (EDTCDE) keyword" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzakdmstprkey.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="os400edits.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="udec2.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../rzakc/rzakcmstdfedtcd.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="rzakdmstptedtcd" />
|
|
<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>EDTCDE (Edit Code) keyword in printer files</title>
|
|
</head>
|
|
<body id="rzakdmstptedtcd"><a name="rzakdmstptedtcd"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">EDTCDE (Edit Code) keyword in printer files</h1>
|
|
<div><p>Use this keyword to edit output-capable numeric fields.</p>
|
|
<div class="section"><p>The format of the keyword is:</p>
|
|
<pre>EDTCDE(edit-code [* | floating-currency-symbol])</pre>
|
|
<div class="p">Depending
|
|
on which edit code you specify, you can change the appearance of the printed
|
|
fields as follows: <ul><li>Leading zeros are suppressed.</li>
|
|
<li>The field can be punctuated with commas and periods to show decimal position
|
|
and to group digits by threes.</li>
|
|
<li>Negative values can be printed with a minus sign or CR to the right.</li>
|
|
<li>Zero values can be printed as zeros or blanks.</li>
|
|
<li>Asterisks can be printed to the left of significant digits to provide
|
|
asterisk protection.</li>
|
|
<li>A currency symbol (corresponding to the system value QCURSYM)
|
|
can be printed immediately to the left of the farthest- right significant
|
|
digit (called a <strong>floating-currency symbol</strong>). For fixed-currency symbols,
|
|
use the EDTWRD keyword.</li>
|
|
<li>The field can be further edited using a user-defined edit code.</li>
|
|
</ul>
|
|
</div>
|
|
<p>EDTCDE covers most editing requirements. Use the EDTWRD keyword
|
|
when EDTCDE is not sufficient.</p>
|
|
<p>EDTCDE is valid only for fields with
|
|
S or a blank in position 35 (Data Type).</p>
|
|
<p>You cannot specify EDTCDE and
|
|
EDTWRD for the same field. If you specify EDTCDE for a field previously defined
|
|
in a database file, you need not specify EDTCDE for the field that you
|
|
are defining. Instead, specify R in column 29 to refer to the previously defined
|
|
field. The editing specified for that field is included in the printer file.
|
|
If you specify length, data type, or decimal columns for a printer file field,
|
|
editing specified for the referenced field is not included in the printer
|
|
file and you must specify editing again in the printer file.</p>
|
|
<p>The DFT
|
|
keyword cannot be specified with the EDTCDE keyword.</p>
|
|
<p>Option indicators
|
|
are not valid for this keyword.</p>
|
|
<p>You can specify two kinds of edit codes:
|
|
<span class="keyword"><font color="Purple">i5/OS™</font></span> edit
|
|
codes and user-defined edit codes.</p>
|
|
</div>
|
|
<div class="section"><h4 class="sectiontitle">Example</h4><p>The following example shows how to specify
|
|
the EDTCDE keyword.</p>
|
|
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
|
|
00050A PRICE 5 2 5 2EDTCDE(J *)
|
|
A</pre>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="os400edits.htm">i5/OS edit codes in printer files</a></strong><br />
|
|
This topic describes the definition and functions of edit codes.</li>
|
|
<li class="ulchildlink"><strong><a href="udec2.htm">User-defined edit codes in printer files</a></strong><br />
|
|
Edit codes 5 through 9 are user-defined edit codes.</li>
|
|
</ul>
|
|
|
|
<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="../rzakc/rzakcmstdfedtcd.htm">EDTCDE keyword for display files</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |