ibm-information-center/dist/eclipse/plugins/i5OS.ic.dds_5.4.0.1/printerexamp.htm

112 lines
6.0 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="concept" />
<meta name="DC.Title" content="Example: A printer file using DDS" />
<meta name="abstract" content="This printer file example contains DDS for printing a customer master list." />
<meta name="description" content="This printer file example contains DDS for printing a customer master list." />
<meta name="DC.subject" content="examples of DDS, printer file" />
<meta name="keywords" content="examples of DDS, printer file" />
<meta name="DC.Relation" scheme="URI" content="rbafpmstexamp.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1999, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1999, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="printerexamp" />
<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>Example: A printer file using DDS</title>
</head>
<body id="printerexamp"><a name="printerexamp"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Example: A printer file using DDS</h1>
<div><p>This printer file example contains DDS for printing a customer
master list.</p>
<p>The following keywords are important in the example:</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="void" border="0" rules="none"><tbody><tr><td valign="top" width="50%"> <p>EDTCDE(Y)<br />
EDTCDE(Z)<br />
PAGNBR<br />
SKIPB<br />
SPACEA</p>
</td>
<td valign="top" width="50%"> <p>UNDERLINE<br />
BARCODE<br />
CHRSIZ<br />
COLOR</p>
</td>
</tr>
</tbody>
</table>
</div>
<p>This printer file uses space and skip keywords instead of line numbers.</p>
<div class="fignone" id="printerexamp__o21"><a name="printerexamp__o21"><!-- --></a><span class="figcap">Figure 1. Printer file</span><pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A*
00020A* SAMPLE PRINTER FILE
00030A*
00040A <strong>(1)</strong> REF(MLGREFP)
00050A R HEADER TEXT('TWO-LINE HEADING, UNDERLINED')
00060A <strong>(2)</strong> SKIPB(2)
00070A <strong>(2)</strong> 29'CUSTOMER MASTER FILE'
00080A <strong>(2)</strong> 75DATE EDTCDE(Y)
00090A <strong>(2)</strong> +1TIME
00100A <strong>(2)</strong> 122'Page'
00110A <strong>(2)</strong> +1PAGNBR EDTCDE(Z) SPACEA(2)
00120A <strong>(2)</strong> 2'ACCOUNT CUSTOMER'
00130A <strong>(2)</strong> SPACEA(1)
00140A <strong>(2)</strong> 2'NUMBER NAME +
00150A ADDRESS +
00160A CITY +
00170A STATE ZIP '
00180A <strong>(3)</strong> UNDERLINE
00190A SPACEA(2)
A</pre>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00200A R DETAIL TEXT('ONE-LINE RECORD')
00210A <strong>(4)</strong> SPACEA(5)
00220A ACTNUM R <strong>(4)</strong> 2CHRSIZ(2 2)
00230A NAME R <strong>(5)</strong>+4COLOR(BLU)
00240A ADDR R +3
00250A CITY R +3
00260A STATE R <strong>(6)</strong>+3BARCODE(CODE30F9 4 *NOHRI *AST)
00270A ZIP R +5
A</pre>
</div>
<div class="p"><strong>Legend: </strong> <dl><dt class="dlterm">(1)</dt>
<dd>This printer file refers to the field reference file MLGREFP.</dd>
<dt class="dlterm">(2)</dt>
<dd>When SKIPB(2) is specified at the record level, the printer skips to line
2 before printing the record format (HEADER). Also, line numbers in positions
39 through 41 are not allowed.</dd>
<dt class="dlterm">(3)</dt>
<dd>UNDERLINE is a field-level keyword that causes the constant field preceding
it to be underlined on the printout.</dd>
<dt class="dlterm">(4)</dt>
<dd>The CHRSIZ keyword specified here causes the ACTNBR field to print with
its height and width expanded by 2.</dd>
<dt class="dlterm">(5)</dt>
<dd>The COLOR keyword causes the NAME field to print in blue if you use a
printer that supports color (the 4224 Printer).</dd>
<dt class="dlterm">(6)</dt>
<dd>The BARCODE keyword specified for the STATE field causes the CODE30F9
bar code to print for the STATE field if you use an IPDS™ printer.</dd>
</dl>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafpmstexamp.htm" title="This topic provides examples of data description specifications (DDS) for each type of file discussed in this topic. If you choose, you can use the examples in this topic with appropriate high-level language programs.">Examples: DDS for each file type</a></div>
</div>
</div>
</body>
</html>