Connecting a TCP/IP-Attached IPDS Printer in OS/400 V3R2
[Back to Documentation]

This document describes how to configure OS/400 V3R2 ( AS 400 OPERATION SYSTEM ), TCP/IP, and PSF 400 to print on TCP/IP-attached IPDS printers, including LAN printers attached using the OnePrint server or client.

The OnePrint server/client is a software protocol converter you can use to communicate between PSF/400 and a LAN printer. Using the OnePrint, you can print from the PSF/400 on any LAN printers anywhere on an IBM token ring network or an Ethernet LAN.

The OnePrint server/client requires TCP/IP communications protocols and runs on either an IBM token ring network or an Ethernet LAN. One OnePrint ClientExpress is required for each printer. OnePrint ServerExpress can support up to 128 LAN printers simultaneously  

Sample Configuration Descriptions for the OnePrint server/client with TCP/IP Token-Ring  

Following are the commands, parameters, and values to create configuration descriptions for the OnePrint in a TCP/IP token-ring environment. The values are in parentheses, beside the parameter, and are examples only. The values you decide to use in creating your descriptions can be different.

When information located under a parameter in the examples is presented, there will be a reference to a related parameter from the list above.

Configuration Description

  1. CRTLINTRN (Create Line Description (Token-Ring)) Command
  2. ADDTCPIFC (Add TCP/IP Interface) Command
  3. CRTDEVPRT (Create Device Description (Printer)) Command
  4. CRTPSFCFG (Create PSF Configuration) Command

 

  1. CRTLINTRN (Create Line Description (Token-Ring)) Command

This is the command that you use to create the token-ring communications line description.

Prompts Parameters and Values in Parentheses

Line description

LIND(LINETRN)

Resource name

RSRCNAME(LIN021)

Specifies the physical position or port on the AS/400 system that the communications cable attaches to. Use the WRKHDWRSC (Work with Hardware Resources) command to view the resource names of the communications adapter cards.

Text 'description'

TEXT('TRN line')

2.ADDTCPIFC (Add TCP/IP Interface) Command

This is the command that you use to create a TCP/IP interface for your line description.

Prompts Parameters and Values in Parentheses

Internet address

INTNETADR('135.25.21.29')

Specifies the Internet address that the local system responds to on this network. An interface is associated with a line description. In this example, 135.25.21.29 is the value used.

Line description

LIND(LINETRN)

Specifies the name of the line description associated with the TCP/IP interface. In this example, LINETRN is the value used.

Subnet mask

SUBNETMASK('255.255.255.0')

Specifies the subnet mask, which is a bit mask that defines the part of the network where this interface attaches to. In this example, 255.255.255.0 is the value used.

Autostart

AUTOSTART(*YES)

Specifies whether the interface is automatically started when the TCP/IP stack is activated with the Start TCP/IP (STRTCP) command.

3.CRTDEVPRT (Create Device Description (Printer)) Command

This is the command that you use to create the printer device description.

Prompts Parameters and Values in Parentheses

Device description

DEVD(PRT4028LAN)

Device class

DEVCLS(*RMT)

Device type

TYPE(*IPDS)

Device model

MODEL(0)

Advanced function printing

AFP(*YES)

The default for this parameter is *NO; however, for AFP this parameter must be *YES.

Advanced function printing

AFPATTACH(*APPC)

The default for this parameter is *WSC; however, for TCP/IP support this parameter must be *APPC. A PSF configuration object defined for this device description, see below, will override this value so that TCP/IP support may be used.

Font identifier

FONT(011)

Form feed

FORMFEED(*AUTOCUT)

Use a value of *AUTOCUT if you are printing to a printer using cut-sheet paper. Use a value of *CONT if you are printing to a printer using continuous-forms paper.

Printing while converting

PRTCVT(*YES)

The default value of *YES causes the printer writer to overlap the conversion and printing processes. That is, some of the spooled file data starts to print before the printer writer has converted the whole spooled file. A value of *NO causes the printer writer to convert the spooled file completely before sending the spooled file to a printer.

Remote Location

RMTLOCNAME(TCPIP)

Use any value, since it will be overridden by the value for RMTLOCNAME in the PSF configuration object associated with this device description. If your AS/400 exists in an SNA network, this value must not match that of any RMTLOCNAME in that network. However, for all printer device descriptions using TCP/IP support, this value may be the same.

Text 'description'

TEXT('TCP/IP-attached printer')

4.CRTPSFCFG (Create PSF Configuration) Command

This is the command that you use to create a PSF configuration object in order to specify a TCP/IP-attached printer. By specifying values for remote location and TCP/IP port with CRTPSFCFG, you override the SNA configuration parameters specified in the printer device description.

Prompts Parameters and Values in Parentheses

PSF configuration

PSFCFG(PRT4028LAN)

Specifies the name and library of the PSF configuration object to be created. In order for the values specified here to be used by PSF/400, this PSF configuration object must be named PRT4028LAN and stored into library QGPL. QGPL is the default library named on this parameter.

Remote location

RMTLOCNAME('135.25.44.184')

Specifies the IP address or host name of the OnePrint

that you want to access. In this example, IP

address 135.25.44.184 is used.

TCP/IP port

PORT(5001)

Specifies the port used at the OnePrint ClientExpress. The only value

you may use is 5001, For the OnePrint ServerExpress set it to 5000+OnePrint port number.

TCP/IP activation timer

ACTTMR(170)

Specifies the length of time (in seconds) that PSF/400 waits for a response from the TCP/IP attached printer when trying to connect at startup or re-start. In this example, the default value of 170 is being used.

Integrated Print Solutions, LC
1701 North Collins Blvd.

Suite 140
Richardson, TX 75080

Main 972-769-1900
FAX 972-769-2800
Toll Free
1-800-873-0900