Using FORMagic/400 with Internet Printers
Two methods are available for sending FORMagic/400 application spooled files to printers across the Internet. Both require LPD function in raw mode:
- Direct TCP/IP access to a print server such as HP Jet Direct. The AS/400 must use TRANSFORM(*YES) and specify a compatible Manufacturer Type and Model.
- Mocha W32 LPD, setup as described below.
General:
Use Mocha W32 LPD, in "raw mode", meaning the printer queue on the AS/400 must be defined as TRANSFORM(*YES) and you must select raw mode in the Mocha product.
Not all printer drivers support this mode, and you could see an OS crash. We suggest trying it first on a test machine. Our testing has shown a plain Laser Jet 4 driver is okay.
Installation:
Obtain the latest Mocha LPD (exe version) from www.mochasoft.dk. Simply run it to install, and follow the instructions. See below for creating the print queue.
Create a printer device named PRT01MLPD (for example) on the AS/400:
CRTDEVPRT DEVD(PRT01MLPD) DEVCLS(*VRT) TYPE(3812) MODEL(1) FONT(011) using these defaults: AFP *NO FORMFEED *AUTOCUT TRANSFORM *NO MUST be *NO WSCST *NONE USRDFNOBJ *NONE *NONE USRDTATFM *NONE USRDRVPGM *NONE DEPLOCNAME *NONE TEXT (your value) USRDFNOPT (none)In this example, our PC running Mocha W32 LPD is named 'W98'. Verify the AS/400 can communicate with W98 using the Ping command: PING W98. The AS/400 should Ping successfully. If not, you may have to set up a host table entry. Select GO TCPADM, Configure TCP/IP, and Work with TCP/IP host table entries. There should be an entry similar to this:
192.168.1.100 W98 (W98 address) W98.yourdomain.COM which provides a detailed display like this: Internet Address . . . . . . . . . . . : 192.168.1.100 Host names: Name . . . . . . . . . . . . . . . . : CH18A Name . . . . . . . . . . . . . . . . : CH18A.PROHELPB.COMNext, configure PRT01MLPD as a Remote Print Queue, which tells the AS/400 where to send the SCS print jobs. Insure PRT01MLPD does not have an active writer. If necessary: ENDWTR WTR(PRT01MLPD) OPTION(*IMMED). Then, change the OUTQ with this command:
CHGOUTQ OUTQ(PRT01MLPD) RMTSYS('W98') RMTPRTQ('laser') CNNTYPE(*IP) DESTTYPE(*OTHER) TRANSFORM(*YES) MFGTYPMDL(*HP4)'W98' is the name of the PC running Mocha W32 LPD and 'laser' is the print queue defined in Mocha LPD. The AS/400 OUTQ name does not have to match anything in Mocha LPD. 'laser' MUST match the Queue name in Mocha W32 LPD Menu, Settings, Printer Queue setup. W98 should not be replaced with a raw IP address such as 192.168.1.100. You MUST create a host name entry in the AS/400 host table for the PC.
Here is what the queue description should look like:
Queue: PRT01MLPD Library: QUSRSYS Remote system . . . . . . . . . . . . : W98 Remote printer queue . . . . . . . . . : PRT01MLPD Connection type . . . . . . . . . . . : *IP Destination type . . . . . . . . . . . : *OTHER Host print transform . . . . . . . . . : *YES MUST be *YES Manufacturer type and model . . . . . : *HP4 or similar Workstation customizing object . . . . : *NONE Image configuration . . . . . . . . . : *NONE Destination options . . . . . . . . . : *NONE User defined option . . . . . . . . . : *NONE User defined object . . . . . . . . . : *NONE User driver program . . . . . . . . . : *NONEThe printer can now be tested. It should be compatible with any local network printer set up as a 3812 SCS device, and it should be fully compatible with FORMagic/400 and FontMagic/400 applications that work with similar local printers.
Support:
Due to the many variables involved in individual customer systems, we can provide only general support for setting up and using Mocha LPD.