Configuration Examples
This topic contains several examples for changing the workstation gateway server
configuration.

Starting the Server Automatically when TCP/IP Starts — Example

Toautomatically start the workstation gateway server when the Start TCP/IP
(STRTCP) CL command runs, change the Workstation Gateway attributes as
follows:
CHGWSGA AUTOSTART(*YES)
The next time the STRTCP command runs, the WSG server is also started.

Changing the Number of Client Sessions per Server Job —

Example
This command indicates that the next time you start the workstation gateway server,
it handles up to 30 client sessions. If you have a small system, specify a larger
number to reduce the amount of resource dedicated to the server. Toreduce
bottlenecking of workstation gateway server sessions through a server, specify a
smaller number. Bottlenecking is more likely to occur if yourAS/400 system is a
smaller model.
CHGWSGA NBRCLT(30)

Using Server Mapping Tables — Example

Youcan use any tables that you already created for Telnet. However, the AS/400
system supports only SBCS tables and not DBCS tables this way. For more
information about mapping tables, see AppendixC. Mapping Tables Associated with
TCP/IP Function.
This command indicates that the next time you start the workstation gateway server,
it has the following characteristics:
vThe ASCII-to-EBCDIC and EBCDIC-to-ASCII conversion is not done with a
CCSID value, but instead the outgoing and incoming mapping tables are used.
vA copy of the information found in the table object named TSTWSGO is used for
mapping outgoing data in workstation gateway server. The table object is found
in one of the libraries in the library list.
vA copy of the information found in the table object named TSTWSGI is used for
mapping incoming data in workstation gateway server. The table object is found
in one of the libraries in the library list.
CHGWSGA TBLWSGOUT(*LIBL/TSTWSGO)
TBLWSGIN(*LIBL/TSTWSGI)

Using a CCSID When MIME Code Page Not Available—Example

The following example specifies the ASCII CCSID for China, taken from Table31 on
page 329. Because a MIME standard does not yet support China, Korea, and
Taiwan,the AS/400 system does not automatically recognize the CCSID values for
those countries. Therefore, these countries must specify their CCSID to run the
workstation gateway server.
CHGWSGA CCSID(01381)
Chapter10. Workstation Gateway Server 337