70 lines
4.0 KiB
HTML
70 lines
4.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 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 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>Print AFP data generated on the iSeries server</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="rzau6prtis"></a>
|
||
|
<h4 id="rzau6prtis">Print AFP data generated on the iSeries™ server</h4>
|
||
|
<p>Follow these steps to generate and print i5/OS Advanced Function Presentation™ data stream (AFPDS) data with Print Services Facility™ (PSF): </p>
|
||
|
<ol type="1">
|
||
|
<li><a href="rzau6crtafp.htm#rzau6crtafp">Create the AFPDS data.</a></li>
|
||
|
<li>Optional: <a href="rzau6spcovl.htm#rzau6spcovl">Specify overlays</a>.</li>
|
||
|
<li>Generate an AFPDS spooled file.
|
||
|
<p><span class="bold">Method 1: Use an application
|
||
|
program.</span> The application program that creates the data to be used with
|
||
|
the overlays might need to be tailored so the printed output fits with the
|
||
|
overlays you designed.</p>
|
||
|
<p>Tailoring the program to fit the overlay is similar
|
||
|
to tailoring the program to work with a preprinted form.</p>
|
||
|
<p><span class="bold">Method 2: Use the Print AFP™ Data (PRTAFPDTA) command.</span> If you have a database
|
||
|
file that contains AFP data, use the PRTAFPDTA command to spool the file.</p>
|
||
|
<p>If you want to use a prompt display with this command, type PRTAFPDTA
|
||
|
and press F4 (Prompt).</p>
|
||
|
<p></p>
|
||
|
<a name="wq20"></a>
|
||
|
<div class="notelisttitle" id="wq20">Notes:</div>
|
||
|
<ol type="a">
|
||
|
<li>The PRTAFPDTA command prints AFPDS data. Any padding between the AFPDS
|
||
|
structured fields must be <span class="hex">X'40'</span> or <span class="hex">X'00'</span>.</li>
|
||
|
<li>When using the PRTAFPDTA command, do not override the DEVTYPE parameter
|
||
|
on the system printer file, QSYSPRT.</li>
|
||
|
<li>When using the PRTAFPDTA command, the form definition typically identifies
|
||
|
the drawer to print from. An exception is when an Override with Printer File
|
||
|
(OVRPRTF) command has been issued with a different drawer value. In this case,
|
||
|
the drawer value is taken from the override command.</li>
|
||
|
</ol>
|
||
|
<p><span class="bold">Examples</span></p>
|
||
|
<p>This command prints
|
||
|
the first member in file MYFILE starting with page 2 and ending on page 6. </p>
|
||
|
<pre class="xmp">PRTAFPDTA FILE(MYLIB/MYFILE) STRPAGE(2) ENDPAGE(6)</pre>
|
||
|
<p>This command
|
||
|
prints the member $REPORT in file MYFILE using a form definition of F10101
|
||
|
and all available exception handling. </p>
|
||
|
<pre class="xmp">PRTAFPDTA FILE(MYLIB/MYFILE) MBR($REPORT) FORMDF(F10101) FIDELITY(*CONTENT)</pre></li>
|
||
|
<li>Release the spooled file to a device with device type *AFPDS.</li></ol>
|
||
|
<p><span class="bold">Related reference</span></p>
|
||
|
<p><a href="../cl/prtafpdta.htm">Print AFP Data (PRTAFPDTA)</a> CL command</p>
|
||
|
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
|
||
|
</body>
|
||
|
</html>
|