The code conversion tables are located in the library utmconvt.dll
. utmconvt.dll
is located in the same directory as libwork.dll
.
You can adapt these conversion tables to your own requirements by modifying the source file kcsaeea.c
supplied in the directory utmpath\src
and creating a modified utmconvt.dll
.
\src
contains the resource file utmconvt.rc
with version and copyright information. This information is displayed if you right-click the dll file and select Properties. It is not essential for this file to be included.Modifying the library utmconvt.dll
To modify the library utmconvt.dll
the following steps are necessary:
Copy the file
kcsaeea.c
to a separate file directory.Modify the conversion tables according to your requirements. To do this, edit the file
kcsaeea.c
with a text editor. For each of the four code conversions,kcsaeea.c
contains two character arrays with a length of 256. One array is used for ASCII → EBCDIC conversion, the other for EBCDIC → ASCII conversion.Start Microsoft Visual Studio and proceed as follows:
In the utmpath directory, create a new Win32 or X64 project with the name
utmconvt
and with the application type Dynamic Link Library.Add the following files to the project:
The modified code table file
kcsaeea.c
,and, if required,
utmconvt.rc
.
Assign the file
utmconvt.def
to the project as module definition file (Project properties →
Linker
→Module Definition File
).From this project, create the library
utmconvt.dll
.Close Microsoft Visual Studio
Replace the old library
utmconvt.dll
with the new library:First back up the library under a different name, so that you can access it again if anything goes wrong.
Copy the new
utmconvt.dll
to the directory which contains the UTM librarylibwork.dll
(this is generally utmpath\ex
). Make sure that the originalutmconvt.dll
is actually replaced by the newutmconvt.dll
.
The new conversion library is ready for use.