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

306 lines
21 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="i5/OS edit codes in printer files" />
<meta name="abstract" content="This topic describes the definition and functions of edit codes." />
<meta name="description" content="This topic describes the definition and functions of edit codes." />
<meta name="DC.subject" content="edit codes" />
<meta name="keywords" content="edit codes" />
<meta name="DC.Relation" scheme="URI" content="rzakdmstptedtcd.htm" />
<meta name="DC.Relation" scheme="URI" content="../rzakz/rzakz1.htm" />
<meta name="DC.Relation" scheme="URI" content="../rzahg/rzahgicbasic2.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="os400edits" />
<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>i5/OS edit codes
in printer files</title>
</head>
<body id="os400edits"><a name="os400edits"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1"><span class="keyword">i5/OS</span> edit codes
in printer files</h1>
<div><p>This topic describes the definition and functions of edit codes.</p>
<div class="section"><p>The <span class="keyword"><font color="Purple">i5/OS™</font></span> edit
codes are:</p>
<p>1 through 4<br />
A through D<br />
J through Q<br />
W through Z</p>
<div class="note"><span class="notetitle">Note:</span> The <span class="keyword">iSeries™</span> server
hardware operates with a preferred sign of F, which is equivalent to using
edit code X. If the DATE or TIME keyword is specified with edit code X, the
separator character is not displayed.</div>
</div>
<div class="section"><h4 class="sectiontitle">Asterisk fill or floating currency symbol in printer files</h4><p>You can optionally
specify asterisk fill or floating currency symbol with edit codes 1 through
4, A through D, and J through Q.</p>
<p>When you specify asterisk fill, an
asterisk (*) is written for each zero suppressed. A complete field of asterisks
is printed for a zero-balance field.</p>
<p>When you specify floating-currency
symbol, the symbol appears to the left of the first significant digit. It
does not print on a zero balance when an edit code is used that suppresses
the zero balance. The symbol you specify must match the system value for the
currency symbol (QCURSYM). (The symbol must match when the file is created.
It does not have to match when the file is used.)</p>
<div class="note"><span class="notetitle">Note:</span> If an edit code
is changed after a file is created, the new edit code is not used unless the
file is re-created. Instead, the editing specified at the time the file was
created continues to be used.</div>
<p>The following
table summarizes the functions provided by <span class="keyword"><font color="Purple">i5/OS</font></span> edit codes.</p>
<div class="tablenoborder"><a name="os400edits__tedit"><!-- --></a><table cellpadding="4" cellspacing="0" summary="" id="os400edits__tedit" width="100%" frame="border" border="1" rules="all"><caption>Table 1. Summary chart for <span class="keyword"><font color="Purple">i5/OS</font></span> Edit codes</caption><thead align="left"><tr><th align="left" valign="bottom" width="12.626262626262626%" id="d0e75">Edit codes</th>
<th align="left" valign="bottom" width="12.373737373737374%" id="d0e77">Commas<sup>1</sup> printed</th>
<th align="left" valign="bottom" width="12.626262626262626%" id="d0e82">Decimal points<sup>1</sup> printed</th>
<th align="left" valign="bottom" width="12.373737373737374%" id="d0e87">Signs printed when negative number</th>
<th align="left" valign="bottom" width="12.626262626262626%" id="d0e89">Blank value of QDECFMT system value</th>
<th align="left" valign="bottom" width="12.373737373737374%" id="d0e91">I value of QDECFMT system value</th>
<th align="left" valign="bottom" width="12.626262626262626%" id="d0e93">J value of QDECFMT system value</th>
<th align="left" valign="bottom" width="12.373737373737374%" id="d0e95">Leading zero suppressed</th>
</tr>
</thead>
<tbody><tr><td align="left" valign="top" width="12.626262626262626%" headers="d0e75 ">1</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e77 ">Yes</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e82 ">Yes</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e87 ">No sign</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e89 ">.00 or 0</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e91 ">,00 or 0</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e93 ">0,00 or 0</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e95 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="12.626262626262626%" headers="d0e75 ">2</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e77 ">Yes</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e82 ">Yes</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e87 ">No sign</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e89 ">Blanks</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e91 ">Blanks</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e93 ">Blanks</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e95 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="12.626262626262626%" headers="d0e75 ">3</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e77 ">&nbsp;</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e82 ">Yes</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e87 ">No sign</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e89 ">.00 or 0</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e91 ">,00 or 0</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e93 ">0,00 or 0</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e95 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="12.626262626262626%" headers="d0e75 ">4</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e77 ">&nbsp;</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e82 ">Yes</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e87 ">No sign</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e89 ">Blanks</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e91 ">Blanks</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e93 ">Blanks</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e95 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="12.626262626262626%" headers="d0e75 ">A</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e77 ">Yes</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e82 ">Yes</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e87 ">CR</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e89 ">.00 or 0</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e91 ">,00 or 0</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e93 ">0,00 or 0</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e95 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="12.626262626262626%" headers="d0e75 ">B</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e77 ">Yes</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e82 ">Yes</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e87 ">CR</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e89 ">Blanks</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e91 ">Blanks</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e93 ">Blanks</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e95 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="12.626262626262626%" headers="d0e75 ">C</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e77 ">&nbsp;</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e82 ">Yes</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e87 ">CR</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e89 ">.00 or 0</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e91 ">,00 or 0</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e93 ">0,00 or 0</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e95 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="12.626262626262626%" headers="d0e75 ">D</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e77 ">&nbsp;</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e82 ">Yes</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e87 ">CR</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e89 ">Blanks</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e91 ">Blanks</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e93 ">Blanks</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e95 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="12.626262626262626%" headers="d0e75 ">J</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e77 ">Yes</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e82 ">Yes</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e87 ">-(Minus)</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e89 ">.00 or 0</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e91 ">,00 or 0</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e93 ">0,00 or 0</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e95 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="12.626262626262626%" headers="d0e75 ">K</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e77 ">Yes</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e82 ">Yes</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e87 ">-(Minus)</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e89 ">Blanks</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e91 ">Blanks</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e93 ">Blanks</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e95 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="12.626262626262626%" headers="d0e75 ">L</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e77 ">&nbsp;</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e82 ">Yes</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e87 ">-(Minus)</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e89 ">.00 or 0</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e91 ">,00 or 0</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e93 ">0,00 or 0</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e95 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="12.626262626262626%" headers="d0e75 ">M</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e77 ">&nbsp;</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e82 ">Yes</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e87 ">-(Minus)</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e89 ">Blanks</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e91 ">Blanks</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e93 ">Blanks</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e95 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="12.626262626262626%" headers="d0e75 ">N</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e77 ">Yes</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e82 ">Yes</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e87 ">-(Minus)</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e89 ">.00 or 0</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e91 ">,00 or 0</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e93 ">0,00 or 0</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e95 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="12.626262626262626%" headers="d0e75 ">O</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e77 ">Yes</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e82 ">Yes</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e87 ">-(Minus)</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e89 ">Blanks</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e91 ">Blanks</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e93 ">Blanks</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e95 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="12.626262626262626%" headers="d0e75 ">P</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e77 ">&nbsp;</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e82 ">Yes</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e87 ">-(Minus)</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e89 ">.00 or 0</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e91 ">,00 or 0</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e93 ">0,00 or 0</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e95 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="12.626262626262626%" headers="d0e75 ">Q</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e77 ">&nbsp;</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e82 ">Yes</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e87 ">-(Minus)</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e89 ">Blanks</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e91 ">Blanks</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e93 ">Blanks</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e95 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="12.626262626262626%" headers="d0e75 ">W<sup>2</sup></td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e77 ">&nbsp;</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e82 ">&nbsp;</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e87 ">&nbsp;</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e89 ">&nbsp;</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e91 ">&nbsp;</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e93 ">&nbsp;</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e95 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="12.626262626262626%" headers="d0e75 ">Y<sup>3</sup></td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e77 ">&nbsp;</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e82 ">&nbsp;</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e87 ">&nbsp;</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e89 ">&nbsp;</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e91 ">&nbsp;</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e93 ">&nbsp;</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e95 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="12.626262626262626%" headers="d0e75 ">Z<sup>4</sup></td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e77 ">&nbsp;</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e82 ">&nbsp;</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e87 ">&nbsp;</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e89 ">&nbsp;</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e91 ">&nbsp;</td>
<td align="left" valign="top" width="12.626262626262626%" headers="d0e93 ">&nbsp;</td>
<td align="left" valign="top" width="12.373737373737374%" headers="d0e95 ">Yes</td>
</tr>
<tr><td colspan="8" align="left" valign="top" headers="d0e75 d0e77 d0e82 d0e87 d0e89 d0e91 d0e93 d0e95 "> <div class="note"><span class="notetitle">Notes:</span> <ol><li>The QDECFMT system value determines the decimal point
character (period as used in the U.S.), the character used to separate groups
of three digits (comma as used in the U.S.), and the type of zero suppression
(depending on comma and period placement).</li>
<li>The W edit code suppresses the farthest-left zero of a
date field that is five digits long. It also suppresses the three farthest-left
zeros of a field that is six to eight digits long. The W edit code also inserts
slashes (/) between the month, day, and year according to the following pattern:
<ul><li><em>nn</em>/<em>nnn</em></li>
<li><em>nnnn</em>/<em>nn</em></li>
<li><em>nnnn</em>/<em>nnn</em></li>
<li><em>nnnn</em>/<em>nn</em>/<em>nn</em></li>
</ul>
</li>
<li>The Y edit code suppresses the farthest-left zero of a
date field that is three to six digits long or eight digits long, and it suppresses
the two farthest-left zeros of a field that is seven positions long. The Y
edit code also inserts slashes (/) between the month, day, and year according
to the following pattern: <ul><li><em>nn</em>/<em>n</em></li>
<li><em>nn</em>/<em>nn</em></li>
<li><em>nn</em>/<em>nn</em>/<em>n</em></li>
<li><em>nn</em>/<em>nn</em>/<em>nn</em></li>
<li><em>nnn</em>/<em>nn</em>/<em>nn</em></li>
<li><em>nn</em>/<em>nn</em>/<em>nnnn</em></li>
</ul>
<p>If the DATE keyword is specified with EDTCDE(Y), the separator character
used is the job attribute, DATSEP at run time. If a separator character is
not specified on the DATSEP job attribute, the system value, QDATSEP, is used
(where slash (/) is the default value). If, at file creation time, DATFMT
is JUL (Julian), the date is formatted as nnnnn. If EDTCDE(Y) is specified,
the date is formatted as nn/nnn, where the slash (/) represents the job date
separator.</p>
</li>
<li>The Z edit code removes the sign (plus and minus) from a numeric field.
The sign of the units column is changed to a hexadecimal F before the field
is written.</li>
</ol>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakdmstptedtcd.htm" title="Use this keyword to edit output-capable numeric fields.">EDTCDE (Edit Code) keyword in printer files</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="../rzahg/rzahgicbasic2.htm">Systems management</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="../rzakz/rzakz1.htm">System values</a></div>
</div>
</div>
</body>
</html>