Skip to main content

Data Conversion Solutions

Data conversion means moving information from one encoding, record layout or file format to another without losing meaning. For an overview of every DataMystic solution area, see the solutions index.

Code Page and Unicode Conversions

Buy Download Tour

TextPipe Pro is the ideal means to convert text encodings from between 145 language encodings and Unicode, or between 151 code page encodings and Unicode.

TextPipe can convert Mainframe EBCDIC files to ASCII format; you can even paste in your Mainframe copybook and TextPipe will do most of the work for you!

You can also:

Why Data Conversion Goes Wrong

Most conversion failures come from the same four sources. Knowing which one you have is half the fix.

How DataMystic Solves It

TextPipe applies a chain of filters to files of any size, so each problem above is handled by a named, repeatable step instead of a one-off script. You can build the chain visually, test it on a sample, then run it on thousands of files or from the command line on a schedule. Because the same filter chain runs every time, results are consistent from one batch to the next. For Microsoft Word sources, WordPipe automates replacements across Word documents before or after migration, so document content matches the data it describes.

Example: Converting a Mainframe Customer Extract

A retailer receives a nightly customer extract from an IBM mainframe. The file is EBCDIC, has fixed 240-byte records with no line endings, and holds balances as packed decimal. The target is a SQL database that expects UTF-8 CSV.

  1. Import the COBOL copybook so TextPipe knows each field’s offset, length and type.
  2. Insert an end-of-line after every 240 bytes to split the stream into records.
  3. Expand packed decimal balances into readable numbers and convert the remaining text fields from EBCDIC to ASCII.
  4. Trim trailing spaces from each field and convert accented characters to Unicode.
  5. Write the output as comma-separated values, quoting any field that contains a comma.

The result is a CSV file the database can load directly. The same chain is saved and run unattended each night. See the EBCDIC to ASCII guide and the mainframe conversion overview for field-level detail.

Related Reading