beautypg.com

Ibm/as400 – Brother HL-4000CN User Manual

Page 20

background image

1-12

IBM/AS400


To use a print server with an IBM AS/400 running IBM’s TCP/IP gateways services
for OS/400 (the OS/400 system must be v3.1 or later)

Use the CFGTCP command at your OS/400 prompt to add the print server’s TCP/IP
address to the AS/400 host table.

Use the following one-line OS/400 command to create the LPD queue:

CRTOUTQ OUTQ( RMSTSYS
(*INTNETADR) RMTPRTQ()
AUTOSTRWTR(1) CNNTYPE(*IP) DESTTYPE (*OTHER)
MFRTYPMDL ()
INTNETADR(‘’) TEXT
(‘’)


where is the new AS/400 print queue name, is the print server
service name,

BINARY_P1

, is the OS/400 printer driver name (*HP4 is

recommended if in doubt), and is the IP address of the print server.Note that
the IP address and description must be enclosed in single quotes.

For example:

CRTOUTQ OUTQ(BR1) RMTSYS(*INTNETADR)
RMTPRTQ(BINARY_P1) AUTOSTRWTR(1) CNNTYPE(*IP)
DESTTYPE(*OTHER) MFRTYPMDL(*HP5SI)
INTNETADR('10.0.0.200') TEXT('Arnes Printer')


If you are using A4 paper, you may find that the printer page formatting is incorrect
(this is probably because your AS/400 system is set to Letter sized paper), to resolve
this problem, do the following:

Edit the "Host Print Transform" source code:

RTVWSCST DEVTYPE(*TRANSFORM) MFRTYPMDL(*HP5SI)
SRCMBR(HP5SI) SRCFILE(QTEMP/SRC)


At the paper definition, alter the existing hex codes for "Letter Size", 1B 26 6C 02 41
to hex codes for "A4 Size", 1B 26 6C 32 36 41

OS/400 version 4, 5, 5.1
You can also use the following command line to create a printer definition:

CRTDEVPRT DEVD(BR2) DEVCLS(*LAN) TYPE(3812) MODEL(1)
LANATTACH(*IP) PORT(9100) FONT(011) PARITY(*NONE) STOPBITS(1)
TRANSFORM(*YES) MFRTYPMDL(*HP5SI) PPRSRC1(*A4) PPRSRC2(*A4)
RMTLOCNAME('10.0.0.200') SYSDRVPGM(*HPPJLDRV) TEXT('Arne''s
Printer')