Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Web Development
Expertise: Beginner
Apr 15, 1997



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Using TCP/IP on AS/400 midrange system

Using TCP/IP on AS/400 midrange system

The AS/400 midrange system with the V3R1 release of its operating system, OS/400, provides a means to implement TCP/IP as a communications protocol. Achieving this connectivity is surprisingly simple.

For starters, IBM provides TCP/IP at no extra cost with V3R1. You will need to make sure that the Connectivity Utilities/400 are installed on your system. This is also included free of charge.

Here is what you need to do to take advantage of TCP/IP:

First, log in to your AS/400 system with an account that has the *IOSYSCFG authority. Use the CHGTELNA command and press F4 to open the options screen. The AUTOSTART parameter when set to *YES will make sure that the telnet server job starts every time you run the STRTCP command (which starts the TCP/IP interface). If this parameter is set to *NO, you will need to run the STRTCPSVR (start TCP/IP servers) command and specify *TELNET or *ALL as the input. The other values such as the timeout parameter and the ASCII to EBCDIC translation can be left unaltered if the defaults are preferred.

If the TCP/IP subsystem is not active on your system, you can start it with the STRTCP command. Now, when you display jobs in the QSYSWRK subsystem, you should observe a job called QTGTELNETS. You will also need to verify that the automatic creation of virtual devices is enabled. Use the WRKSYSVAL (work with system values) command to verify that the QAUTOVRT parameter is set to a value (0 to 9999) that is large enough to accommodate the maximum number of telnet sessions that you anticipate. After these tasks are completed, you are now ready to service telnet requests to your AS/400.

From a workstation on your IP network, open the telnet application and initiate a connection to your AS/400 by specifying its IP address. The preferred terminal type is the IBM 5250; note that the VT100 type can also be used with a valid keyboard map.

You can also initiate a telnet session from your AS/400 system to another remote system. In order to achieve this, you need to use the STRTCPTELN command (start TCP/IP telnet). Use the RMTSYS parameter to specify the host name or IP address of your remote system. If you were to telnet into another AS/400 system, the terminal type would automatically default to 5250.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date