Hallo questionmark,
wurde bestimmt schon 53 mal hier beschrieben.
Hier Nr. 54:
...
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. ..... blabla



Gruss Holger