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.
Tocreate 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
Youcan use user-defined mapping tables for TELNET, FTP or SMTP by specifying
the mapping tables in the appropriate parameter values.
vFor 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)
vFor the VT100 TELNET server, the parameters TBLVTIN and TBLVTOUTmust
be specified when you use the CHGTELNA command:
CHGTELNA TBLVTIN(TBLASCIN)
TBLVTOUT(TBLASCOUT)
vFor 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)
vFor 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)
vFor SMTP,beware that OfficeVision expects data to be in code page 500. SMTP
maps from ASCII to EBCDIC and EBCDIC toASCII in code page 500.
OfficeVision maps data from code page 500 to the code page of theAS/400
system.
vFor SMTP,the parameter values of TBLSMTPIN, and TBLSMTPOUT must be
specified when you use the CHGSMTPAcommand:
CHGSMTPA TBLSMTPIN(TBLASCIN)
TBLSMTPOUT(TBLASCOUT)
520 OS/400 TCP/IPConfiguration and Reference V4R4