× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: Overlays and page segments
  • From: makins@xxxxxxxxxxxxxx
  • Date: Fri, 2 Feb 2001 12:49:29 -0600


You don't have to have client access to get the AFP drivers.  They are also
available at:

www.printers.ibm.com/afpdr.html




Here are some instructions that I compiled a few years ago from some manual
or article somewhere.


Configure the Control Panel so that the default printer is
the AFPDS printer driver, and that this driver sends the
output to a file instead of an LPT or COM port. When the
AFPDS printer driver window comes up, choose '3812'
as the printer and 'Overlay' as the AFPDS object to create.

If you create an overlay for a specific printer, E.g.  4028,
you can only use this overlay for the d/t4028 printer.  You
can get around this by creating a generic overlay for a
printer such as the d/t3820.  If the overlay is generic you
can use it for other printers as well.

Create the Document in any windows program, paint, Word, Visio

Within the Document, choose 'File' from the Action Bar.

Make certain that the resulting window (the 'Change Printer'
window) has the AFPDS driver as the printer to use.  If not,
then Choose the AFPDS printer driver as the printer to use.

Click on the 'Options' button of the 'Change Printer' window.

When the AFPDS printer driver window comes up, choose '3812' or
some other printer type as the printer and 'Overlay' as the
AFPDS object to create.

Copying the AS/400 Document to an AS/400 Database File

You must create a physical file on the AS/400 system before you can create
the AFPDS resource. The physical file must be created with a record length
of 32766 and a record format level check of *NO for the resource to be
created properly:

CRTPF FILE(QTEMP/OVERLAY) RCDLEN(32766) MAXMBRS(*NOMAX) LVLCHK(*NO)

Next, the data in the AS/400 folder must be copied into the physical file.
For example, when creating an overlay you can use the following command:

CPYFRMPCD FROMFLR(foldername) TOFILE(QTEMP/OVERLAY) FROMDOC(OVERLAY.OVL) +
TOMBR(OVERLAY) TRNTBL(*NONE) TRNFMT(*NOTEXT)

When creating a page segment you can use the following command:

CPYFRMPCD FROMFLR(AFPRES) TOFILE(QGPL/AFPRES) FROMDOC(PSEGMENT.PSG) +
TOMBR(PSEGMENT) TRNTBL(*NONE) TRNFMT(*NOTEXT)

At this point, you should be ready to create the AFPDS Resource on the
AS/400.


Creating the AS/400 Resource

We are now ready to create the AFPDS resource. This is done either using
the Create Overlay (CRTOVL) command for overlays and medium overlays, or
using the Create Page Segment (CRTPAGSEG) command for page segments. When
creating an overlay, use the following command:

CRTOVL OVL(library/name) FILE(QTEMP/OVERLAY) MBR(OVERLAY) DATATYPE(*AFPDS)
TEXT('Overlay created using the IBM AFP driver')

When creating a page segment, use the following command:

CRTPAGSEG PAGSEG(QGPL/PSEGMENT) FILE(QGPL/AFPRES) MBR(*PAGSEG) +
TEXT('Page Segment created using the IBM AFP driver')

Once the overlay or page segment has been successfully created, it is then
ready to be used whenever you are creating new AS/400 spooled files. For
best results, you may need to create the spooled files with a device type
of *AFPDS. This will become necessary if you are planning on using AFPDS
resources to print to an ASCII printer (for example, a Lexmark Optra or HP
LaserJet printer) using Host Print Transform's AFPDS-to-ASCII function.





+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.