You can use Codecomp either with or without the /p option, in the following way:
Syntax
>>--codecomp--.----.--filename--.-----------.-->< +-/p-+ +-filename2-+
where
/p | Specifies that the mapping table(s) in use for the current country setting are to be written to the specified file(s) |
filename | The name of a mapping file. The file must have the extension .e2a for an EBCDIC to ASCII mapping table, or .a2e for an ASCII to EBCDIC mapping table. This file is an output file when the /p option is used, and an input file when it is not. |
filename2 | The name of a mapping file. The file must have the extension .e2a for an EBCDIC to ASCII mapping table, or .a2e for an ASCII to EBCDIC mapping table. This file is an output file when the /p option is used, and an input file when it is not. |
If you specify only a single filename when using the /p option, only the mapping file that you have specified (EBCDIC to ASCII or ASCII to EBCDIC) is produced.
If you specify only a single filename without using the /p option, Codecomp attempts to produce the corresponding mapping table by inverting the one in the file you provide. This can only succeed if the second column in the table contains all values from 0 through 255, as otherwise it would not be possible to produce round-trip translations.