Creating a Mapping Table
After you have created the source members, you can create the mapping tables
from the source by using the CRTTBL command. The following example shows how
to create the incoming mapping table from the source member in the
QGPL/QTBLSRC file:
CRTTBL TBL(TBLASCIN) SRCFILE(QGPL/QTBLSRC)
GRTOBJAUT OBJ(QGPL/TBLASCIN) OBJTYPE(*TBL)
USER(QTCP) AUT(*USE)
Once the table has been created, you receive this message indicating the operation
was successful: Table TBLASCIN in library QGPL created.
To create an outgoing mapping table you specify the TBLASCOUT keyword for the
TBL parameter:
CRTTBL TBL(TBLASCOUT) SRCFILE(QGPL/QTBLSRC)
GRTOBJAUT OBJ(QGPL/TBLASCOUT) OBJTYPE(*TBL)
USER(QTCP) AUT(*USE)
Once the table has been created, you receive this message indicating the operation
was successful: Table TBLASCOUT in library QGPL created.
Specifying User-Defined ASCII and EBCDIC Mapping Tables
You can use user-defined mapping tables for TELNET, FTP or SMTP by specifying
the mapping tables in the appropriate parameter values.
v For the TELNET client, the parameter values of TBLASCIN and TBLASCOUT
must be specified when you start TELNET:
STRTCPTELN RMTSYS(remote system name)
TBLVTIN(TBLASCIN)
TBLVTOUT(TBLASCOUT)
v For the VT100 TELNET server, the parameters TBLVTIN and TBLVTOUT must
be specified when you use the CHGTELNA command:
CHGTELNA TBLVTIN(TBLASCIN)
TBLVTOUT(TBLASCOUT)
v For the FTP client, the parameter values of TBLFTPIN and TBLFTPOUT must be
specified when you start FTP:
STRTCPFTP RMTSYS(remote system name)
TBLFTPIN(TBLASCIN)
TBLFTPOUT(TBLASCOUT)
v For the FTP server, you can specify parameter values on the CHGFTPA
command for the FTP server mapping tables as shown below:
CHGFTPA TBLFTPIN(TBLASCIN)
TBLFTPOUT(TBLASCOUT)
v For SMTP, beware that OfficeVision expects data to be in code page 500. SMTP
maps from ASCII to EBCDIC and EBCDIC to ASCII in code page 500.
OfficeVision maps data from code page 500 to the code page of the AS/400
system.
v For SMTP, the parameter values of TBLSMTPIN, and TBLSMTPOUT must be
specified when you use the CHGSMTPA command:
CHGSMTPA TBLSMTPIN(TBLASCIN)
TBLSMTPOUT(TBLASCOUT)
520 OS/400 TCP/IP Configuration and Reference V4R4