× 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.



>From the IBM website:
9.2.4 Printing the Overlay to an AFP File
After the overlay has been completed on the PC, you are ready to "print" it
to an AFP file. Complete the following procedures:
Create an overlay on the PC. You can use any Windows software to create a
preprinted form.
Print your overlay using the IBM AFP Printer Driver for Windows. Before you
can print to the Windows driver, you must set up and use the driver under
your Windows application. First, use the standard procedures to install the
IBM AFP Printer Driver for Windows. Then, do the following:
Select FILE on the application menu bar.
Select PRINT SETUP.
Select Specific printer.
Scroll down the list of printers and highlight AFP 300 on File.
Select OPTIONS.
For Output Type, highlight OVERLAY.
Select OK on the Options window.
Select OK on the Printer Setup window.
You are now ready to print your overlay, but you do not actually print it.
Your output is sent to a file in an AFP overlay format. This file is saved
in an AS/400 shared folder (Drive I:), making it accessible to the AS/400
system.
Select FILE on the application menu bar.
Select PRINT.
Select OK.
You are prompted for an output file name.
Specify i:\qdls\resource\invbac.oly.
(You can name it anything you want, but extension .OLY is the default
extension for overlay.)
Select OK.
Create a resource database. To do so, go to an AS/400 command line and
create a file to receive these PC resources using the following command:
         CRTPF FILE(MYLIB/OVERLAY) RCDLEN(8201) +
                  MBR(MYOVERLAY) MAXMBRS(*NOMAX) LVLCHK(*NO)
The suggested record length is 8201 (32766 is the maximum) and the Level
check parameter must be *NO.
The parameter MAXMBRS(*NOMAX) enables you to create the file only once and
use different member names to create other overlays later on.
Transfer the PC resource to the AS/400 database. Use the CPYFRMPCD command
to transfer the PC resource to the AS/400 database. Figure 53 shows the
display that appears when you use the CPYFRMPCD command.

____________________________________________________________________________
______
   |
|
   |                         Copy From PC Document (CPYFRMPCD)
|
   |
|
   |  Type choices, press Enter.
|
   |
|
   |  From folder  . . . . . . . . . . >
resource____________________________________ |
   | ____________________________________
|
   |  To file  . . . . . . . . . . . . > overlay___    Name
|
   |    Library  . . . . . . . . . . .     mylib_____  Name, *LIBL, *CURLIB
|
   |  From document  . . . . . . . . . > invbac.oly    Name
|
   |  To member  . . . . . . . . . . . > myoverlay_    Name, *FIRST,
*FROMDOC         |
   |  Replace or add records . . . . .   *REPLACE      *REPLACE, *ADD
|
   |  Translate table  . . . . . . . . > *NONE_____    Name, *DFT, *NONE
|
   |    Library  . . . . . . . . . . .     __________  Name, *LIBL, *CURLIB
|
   |  Format of PC data  . . . . . . . > *NOTEXT__     *TEXT, *NOTEXT
|
   |
|
   |
|
   |
|
   |
|
   |
|
   |
|
   |
Bottom  |
   |  F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F13=How to use this
display     |
   |  F24=More keys
|
   |
|
   |
|

|___________________________________________________________________________
_______|


   Figure 53. Copy From PC Document (CPYFRMPCD) Display
Enter the fields on this display as follows:
>From folder
Name of the AS/400 folder where you stored the PC print file
To file
Name of the resource file you created
>From document
Name of the document from which you will make the copy
Translate table
Specify *NONE, the resource should not be translated
Format of PC data
Specify *NOTEXT, the resource is not text
Note: An alternative method would be to FTP the file to the AS/400 and then
use the CRTOVL command, omitting the CPYFRMPCD step.
Create the Overlay. Use the CRTOVL command to create an AS/400 overlay
(object type *OVL). Figure 54 shows the display that appears when you use
the CRTOVL command.

____________________________________________________________________________
______
   |
|
   |                              Create Overlay (CRTOVL)
|
   |
|
   |  Type choices, press Enter.
|
   |
|
   |  Overlay  . . . . . . . . . . . . > invbac____    Name
|
   |    Library  . . . . . . . . . . .     mylib_____  Name, *CURLIB
|
   |  File . . . . . . . . . . . . . . > overlay___    Name
|
   |    Library  . . . . . . . . . . .     mylib_____  Name, *LIBL, *CURLIB
|
   |  Member . . . . . . . . . . . . .   *OVL______    Name, *OVL
|
   |  Data type  . . . . . . . . . . .   *AFPDS        *AFPDS, *AFPU
|
   |  Text 'description' . . . . . . .
*MBRTXT_____________________________________ |
   | ______
|
   |
|
   |
|
   |
|
   |
|
   |
|
   |
|
   |
|
   |
|
   |
Bottom  |
   |  F3=Exit   F4=Prompt   F5=Refresh   F10=Additional parameters
F12=Cancel       |
   |  F13=How to use this display        F24=More keys
|
   |
|
   |
|

|___________________________________________________________________________
_______|


   Figure 54. Create Overlay (CRTOVL) Display
An alternative to using the individual steps described above is to build and
use the OVERLAY command (see Appendix I, "AS/400 SEGMENT and OVERLAY
Commands" in topic I.0). The following figure shows the OVERLAY command
display.

____________________________________________________________________________
______
   |
|
   |                          Create/Print Overlay (OVERLAY)
|
   |
|
   |  Type choices, press Enter.
|
   |
|
   |  Folder . . . . . . . . . . . . .   resource
|
   |  Full Document Name . . . . . . .   invbac.oly    Character value
|
   |  Overlay Description  . . . . . .   Terms and Conditions
|
   |  Overlay Library  . . . . . . . .   sampler       Character value
|
   |  Overlay Name . . . . . . . . . .   invbac        Character value
|
   |  Resolution . . . . . . . . . . .   '*300'        *240, *300
|
   |  Display Overlay  . . . . . . . .   *YES          *NO, *YES
|
   |  Output Queue . . . . . . . . . .   '*JOB  '      Character value
|
   |  Output Queue Library . . . . . .   '*LIBL'       Character value
|
   |  Replace Existing Overlay . . . .   *YES          *NO, *YES
|
   |  Record Length  . . . . . . . . .   2313          Number
|
   |
Bottom  |
   |
|
   |
|
   |  F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F13=How to use this
display     |
   |  F24=More keys
|
   |
|

|___________________________________________________________________________
_______|


   Figure 55. Create/Print Overlay Prompt from OVERLAY Command

The OVERLAY command automates the individual commands and produces a printed
proof of the overlay. You can also use the OVERLAY command to launch the
Client Access/400 Output Queue Viewer and display your overlay.
----------------------------------------------------------------------------
----

    C Copyright IBM Corp. 1996, 1999
----------------------------------------------------------------------------
----


IBM Library ServerR Copyright 1989, 2003 IBM Corporation. All rights
reserved.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.