Kbase 17032: Configuring TCP/IP On The AS/400 And The PC
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/15/2008 |
|
Status: Verified
GOAL:
How to configure TCP/IP on AS/400 and PC.
FACT(s) (Environment):
Progress/400 DataServer
SYMPTOM(s):
User connecting Progress clients to a Progress/400 DataServer via tcp/ip
TCP PROTOCOL is specified in uppercase on the AS/400 for the respective service used to connect.
Tcp broker crashes shortly after it is started and produced a spooled file in the outq QPRINT noting an error.
FIX:
AS/400:
1) Type 'cfgtcp' on a command line and press enter to get to the Configure TCP/IP menu.
2) Select option 10 'Work with TCP/IP host table entries'. Make sure your host name appears here with an IP address, then press F3 to return to options.
3) Select option 21 'Configure related tables'.
4) Select option 1 'Work with service table entries'. Make sure you have a service name set up in lowercase showing a port number and tcp as the protocol.
5) Select option 2 'Work with protocol table entries'. Make sure tcp shows here in lowercase with protocol number 6.
6) Now you can start TCP on the AS/400 by typing 'strtcp' on a command line and press enter. To verify if tcp started correctly, go to 'wrkactjob'. See if a job called QTCPIP is started in the QSYSWRK subsystem. This job should be in a DEQW status.
7) Now you are ready to start a TCP broker on the AS/400. You should use QSECOFR profile or have *ALLOBJ and *IOSYSCFG authority to start the broker. Also verify that the PROGRESS library is in your library list. Type 'STRPRONET' on a command line and press F4 to prompt. Type in the protocol *TCP and enter QINTER for the Broker/Manager Job Queue and press enter. The TCP information needs to be filled in now. Enter a service name that you are using and enter this name in single quotes and in lowercase. Enter QINTER as the Server Job Queue. Answer *YES in Start Server with Message Logging and press enter.
8) You need to verify that the TCP broker started on the AS/400. Use 'wrkactjob' command to verify if PROTCPBRK job is active in QINTER subsystem and has a SELW status. If this job looks okay, then we're all through with the TCP configuration on the AS/400. If this is not started, then you need to look at the job log to see any error messages. Common problems are.. STRPRONET has not been run with QSECOFR authority or QPRINT output queue is not available.
PC:
1) Locate the 'services' and 'hosts' file on your PC. They are usually in your windows directory. You may have just sample files (SAM) for these names as you will note in the Type column. You should edit the 'hosts' file first. You will need to enter the hostname and IP address of your AS/400 along with the names of the PC's with their associated IP addresses that are being used to connect to the Progress/400 DataServer. This 'hosts' file can then be copied to all the other PC's so that you're using the same 'hosts' file.
2) Next, you need to edit the 'services' file. You need to enter the service name, port number (that matches the AS/400 service) and the tcp protocol. The service name needs to be entered in lowercase. Ex/ progress 5027/tcp
3) Now you're done with the TCP configuration on the PC. Now you are ready to create a new client schema holder and use the following connection parameters...
-H AS400NAME -N tcp -S servicename -U USERID -P PASSWORD
Please note the hostname must be in uppercase. The -N with tcp should be in lowercase. The -S parameter is the service name you are using and must be in lowercase. The -U and -P are user profile and password being used to connect on the AS/400 and also must be in uppercase.
FIX:
References to Written Documentation:
Progress/400 DataServer Guide and various IBM AS/400 manuals.