ibm-information-center/dist/eclipse/plugins/i5OS.ic.nls_5.4.0.1/rbagsprtfc3.htm

104 lines
6.3 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="Printer file design and translation" />
<meta name="abstract" content="Program-described printer files and externally described printer files are two types of printer files." />
<meta name="description" content="Program-described printer files and externally described printer files are two types of printer files." />
<meta name="DC.Relation" scheme="URI" content="rbagsuseint.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagscodtec.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/crtprtf.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbagsprtfc3" />
<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>Printer file design and translation</title>
</head>
<body id="rbagsprtfc3"><a name="rbagsprtfc3"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Printer file design and translation</h1>
<div><p>Program-described printer files and externally described printer
files are two types of printer files.</p>
<ul><li>Program-described printer files <p>Program-described files rely on the
high-level language program to define records and fields to be printed.</p>
</li>
<li>Externally described printer files <p>Externally described printer files
use DDS rather than the high-level language to define records and fields to
be printed.</p>
</li>
</ul>
<p>The following figure shows how externally described printer files are used
in creating reports for a different national language version.</p>
<br /><img src="rbags503.gif" alt="Creating different National Language version reports from printer files" /><br /><div class="section"><h4 class="sectiontitle">Printer file translation:</h4><p>When you design printer
files to be translated into a national language version, consider these guidelines:</p>
<ul><li>Use externally described printer files to define records and fields to
be printed. Avoid using program-described printer files. Program-described
printer files are described inside the high-level language program. Translators
trying to translate text imbedded within the program can mistakenly translate
literals that are within your program.</li>
<li>Print data in one national graphic character set on devices that support
the corresponding character sets and code pages. Not all printers support
all CHRID parameters.</li>
<li>Use the MSGCON keyword to access the constant text described in the message
file. A printer file does not have the MSGID keyword. However, the techniques
of direct coding as unnamed output field (literal) and storing text in a database
file can be used to specify the constant text in a printer file. See Textual
Data Code Design.</li>
<li>Take culture conventions into consideration when bar codes are being described
in the printer file. Different countries have different standards for bar
codes.</li>
<li>When entering data, consider these parameters on the Create Printer File
(CRTPRTF) command. <ul><li>PAGESIZE (page size) <p>Different countries have different page-size standards.</p>
</li>
<li>OVRFLW (overflow line number) <p>The overflow line number must be less
than or equal to the page length.</p>
</li>
<li>CHRID (character set and code page) <p>If the CHRID parameter of the printer
file is set to *DEVD, the printer uses the character identifier that was set
on the control panel or specified in the device description.</p>
<p>If the
CHRID parameter of the printer file is set to a specific value, this value
determines the code page and character set used to print the data. For externally
described printer files, the CHRID parameter is used only for fields that
also have the CHRID DDS keyword specified. For all other fields, the code
page and character set used is the same as if *DEVD was specified.</p>
<p>If
the CHRID parameter of the printer file is set to *JOBCCSID, constant text
from an externally described printer file is converted to the CCSID of the
job. The printer data stream is tagged with the CHRID taken from the job CCSID,
using this CHRID value to print the data. When using the *JOBCCSID value on
the CHRID parameter, the CHRID DDS keyword is ignored.</p>
<div class="note"><span class="notetitle">Note:</span> All code pages
and character sets cannot be handled by all printers.</div>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbagsuseint.htm" title="A user interface is the part of a software product that your customer actually sees.">User interfaces</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rbagscodtec.htm" title="Application displays, printer file specifications, and user-created commands typically contain a large amount of constant text. Application displays, printer file specifications, and user-created commands also contain input and output fields such as headings, field prompts, instruction lines, and function key descriptions.">Textual data code design</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="../cl/crtprtf.htm">Create Printer File (CRTPRTF) command</a></div>
</div>
</div>
</body>
</html>