4. Work With Overlay/AFC Sample

You are now ready to start working with the overlay, SAMPLE delivered with the package.

First we will make sure that our device is changed to use the sample queue which the InterForm400® demo is preset for:.

Printer Writer (Twinax, or TCP/IP (TN5250E or Raw Socket))

Make sure the printer writer PRTXXX (determined in step 3) is started. If not, the following command will start the printer writer with our sample output queue AFC_OUT1, which was created by the installation program previously:

STRPRTWTR DEV(PRTXXX) OUTQ(APF3812/AFC_OUT1)

If the printer writer is already started and attached to another output queue, the following command will change PRTXXX to be attached to output queue AFC_OUT1:

CHGWTR WTR(PRTXXX) OUTQ(APF3812/AFC_OUT1)

Remote Writer (TCP/IP LPD)

Using a TCP/IP LPD attached printer does not require a printer device description. You should instead follow the procedure explained on page 370 Attaching through a TCP/IP Print Server in order to configure queue AFC_OUT1 as a remote LPD writer.

The entire environment should now have been set up. The AUTO_FORM sub-system is running, and we have a PCL compatible printer attached to a predefined AFC output queue (AFC_OUT1).

You can verify that the AFC job AFC_INPUT1 is actually started in sub-system AUTO_FORM by entering the InterForm400® main menu and select option 12. Work with Active subsystem AUTO_FORM in menu 5. Work with Auto Forms Control.

In a new installation, the job, AFC_INPUT1 is set NOT to automatic start with the subsystem, AUTO_FORM. You can change it this way: From the InterForm400® main menu choose: 5. Work with Auto Forms Control, 1. Functions attached to Output Queues, choose option 2 for AFC_INPUT1, Change ‘Autostart job’ from N (No) to Y (Yes). Start and stop the subsystem and the job will run.

We will now create a demo spool entry, which the AFC system will merge automatically with a sample overlay called IF400DEMO and send to the AFC output queue AFC_OUT1.

The demo spool entry will appear on the output queue AFC_INPUT1 which is defined as input queue for the AFC_INPUT1 job (The names of the input queue and the AFC job are in this example identical).

User’s Manual for InterForm400® 29

Page 29
Image 29
Intermate iSeries, i5, AS/400 manual Work With Overlay/AFC Sample, Printer Writer Twinax, or TCP/IP TN5250E or Raw Socket