Before you can work with CODE/400, you must establish communications between your CODE session and an AS/400 host if you want to work with source from the host.

Starting CODE/400

You must start the TCP/IP Communication Server on the workstation and a server on the host.

Follow these steps:

  1. Click Start > Programs > VisualAge RPG and CODE/400 > TCPIP Communication Server. The CODE server daemon icon appears in the system tray.
  2. This daemon runs on port 4200 by default. If you have other TCP/IP processes which require that port, you can specify a different port by starting the daemon from the command line. For example, evfctcpd /P=4800

  3. Start a 5250 session if it is not already started.
  4. Sign on to the host system from the 5250 emulation window.
  5. On the host's command line, enter STRCODE and press F4. Fill in the fields. For Remote Location Name use the IP address of your workstation (where the TCPIP Communication Server is running).
  6. If your TCP/IP name server is properly configured, you can use your machine's hostname for the Remote Location Name parameter.

  7. Press Enter. The Cooperative Development Environment/400 display appears on your 5250 emulation window.

Shutting Down CODE Servers

When you are finished with a server you may want to shut it down.

Follow these steps:

  1. Click Start > Programs > VisualAge RPG and CODE400 > CODE400 Tools > Work with Servers. A Server window appears containing a list of active servers.
  2. Click the server you wish to shutdown and then click Shutdown. Click OK to close the Server window.
  3. If you want to shutdown all servers select Programs > VisualAge RPG and CODE400 > CODE400 Tools > Shutdown all Servers.