ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzalu_5.4.0.1/rzaluprintfont.htm

127 lines
6.3 KiB
HTML
Raw 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 xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="dc.language" scheme="rfc1766" 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. -->
<meta name="dc.date" scheme="iso8601" content="2005-09-06" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<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))' />
<title>Example: Print font samples</title>
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
<link rel="stylesheet" type="text/css" href="ic.css" />
</head>
<body>
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
<a name="rzaluprintfont"></a>
<h3 id="rzaluprintfont">Example: Print font samples</h3>
<p>The following information contains instructions and source code that allow
you to print a font global identifier (FGID), font character set, or coded
font and see what it looks like. The source code provided is data description
specifications (DDS), which can be used with the following high-level languages: </p>
<ul>
<li>C</li>
<li>COBOL</li>
<li>RPG</li></ul>
<a name="wq254"></a>
<div class="notelisttitle" id="wq254">Notes:</div>
<ol type="1">
<li>Read the <a href="rzalucodedisclaimer.htm#rzalucodedisclaimer">Code disclaimer information</a> for important legal information.</li>
<li>These sample programs work only with printers configured as AFP(*YES).</li>
<li>See <a href="rzalureffontsub.htm#rzalureffontsub">AFP compatibility fonts and font substitution</a> for the names of FGIDs, font character
sets, and coded fonts.</li>
</ol>
<p>Use the following instructions to print a font global identifier (FGID),
font character set, or coded font and see what it looks like. If you need
assistance with any of the CL commands, use the F4 (Prompt) key and then press
the Help key on any of the parameters. </p>
<ol type="1">
<li>Create a library to contain the objects needed to print the font samples.
In this example, the library is named FONTSAMPLE.
<pre class="xmp">CRTLIB FONTSAMPLE</pre></li>
<li>Add FONTSAMPLE to your library list.
<pre class="xmp">ADDLIBLE FONTSAMPLE</pre></li>
<li>Create a source physical file in FONTSAMPLE to contain your source code.
In this example the source file is named SOURCE.
<pre class="xmp">CRTSRCPF FONTSAMPLE/SOURCE</pre></li>
<li>Add a member named FONT to that physical file. This member is used for
entering the source code for the printer file.
<pre class="xmp">ADDPFM FILE(FONTSAMPLE/SOURCE) MBR(FONT)</pre></li>
<li>Edit the member FONT with the source entry utility (SEU).
<pre class="xmp">STRSEU SRCFILE(FONTSAMPLE/SOURCE) SRCMBR(FONT) TYPE(PRTF)</pre>
<p>Type the DDS source code (shown in <a href="rzaluddssamp.htm#rzaluddssamp">DDS source code</a>)
for the printer file. Edit the DDS source and insert the correct font identifier
or name. When you are done, press F3 to exit.</p></li>
<li>Create the printer file from the DDS source you just typed in.
<pre class="xmp">CRTPRTF FILE(FONTSAMPLE/FONT) SRCFILE(FONTSAMPLE/SOURCE) SRCMBR(FONT)
DEVTYPE(*AFPDS)</pre></li>
<li>Choose the high-level language you will be using to produce printed output.
The compiler for the high-level language you choose must be installed on
your system. Samples are given for C, RPG, and COBOL. Add a member to the
physical file SOURCE. Use one of the following names depending on which language
you choose:
<ul>
<li>CCODE for the C language</li>
<li>COBOLCODE for the COBOL language</li>
<li>RPGCODE for the RPG language</li></ul>
<pre class="xmp">ADDPFM FILE(FONTSAMPLE/SOURCE) MBR(CCODE, COBOLCODE, or RPGCODE)</pre></li>
<li>Edit the member (CCODE, COBOLCODE, or RPGCODE) with source entry utility
(SEU). Type the command that corresponds to the high-level language you are
using.
<dl>
<dt class="bold">C:</dt>
<dd><tt class="xph">STRSEU SRCFILE(FONTSAMPLE/SOURCE) SRCMBR(CCODE) TYPE(C)</tt>
</dd>
<dt class="bold">RPG:</dt>
<dd><tt class="xph">STRSEU SRCFILE(FONTSAMPLE/SOURCE) SRCMBR(RPGCODE) TYPE(RPG)</tt>
</dd>
<dt class="bold">COBOL:</dt>
<dd><tt class="xph">STRSEU SRCFILE(FONTSAMPLE/SOURCE) SRCMBR(COBOLCODE) TYPE(CBL)</tt>
</dd>
</dl></li>
<li>Type the program source for <span class="underlined">one</span> of the languages:
<ul>
<li><a href="rzalucexamp.htm#rzalucexamp">C source code</a></li>
<li><a href="rzalurpgexamp.htm#rzalurpgexamp">RPG source code</a></li>
<li><a href="rzalucobolexamp.htm#rzalucobolexamp">COBOL source code</a></li></ul>
<p>When you are done, press F3 to exit.</p></li>
<li>Create the program, using the command below that corresponds to the language
you chose:
<dl>
<dt class="bold">C:</dt>
<dd><tt class="xph">CRTCPGM PGM(FONTSAMPLE/CPGM) SRCFILE(FONTSAMPLE/SOURCE) SRCMBR(CCODE)</tt>
</dd>
<dt class="bold">RPG:</dt>
<dd><tt class="xph">CRTRPGPGM PGM(FONTSAMPLE/RPGPGM) SRCFILE(FONTSAMPLE/SOURCE SRCMBR(RPGCODE)</tt>
</dd>
<dt class="bold">COBOL:</dt>
<dd><tt class="xph">CRTCBLPGM PGM(FONTSAMPLE/CBLPGM) SRCFILE(FONTSAMPLE/SOURCE) SRCMBR(COBOLCODE)</tt>
</dd>
</dl></li>
<li>Call the program that corresponds to the language you chose:
<dl>
<dt class="bold">C:</dt>
<dd><tt class="xph">Call CPGM</tt>
</dd>
<dt class="bold">RPG:</dt>
<dd><tt class="xph">Call RPGPGM</tt>
</dd>
<dt class="bold">COBOL:</dt>
<dd><tt class="xph">Call CBLPGM</tt>
</dd>
</dl></li></ol><p class="indatacontent">The output from the program is sent to a spooled file named FONT. You
cannot view the spooled file until it prints.</p>
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
</body>
</html>