master slider blank master slider blank

Convert mainframe Cobol copybook files to MS SQL Server SSIS with TextPipe!1

Use SSIS to convert Mainframe COBOL
copybooks for SQL Server import

Trusted by over 2600 IT professionals & companies worldwide2

NASA
Hewlett-Packard
Boeing
Pfizer
Accenture
US Department of Defence
Automated stream editor

What TextPipe can do for you

Convert Mainframe data

Convert EBCDIC to ASCII CSV, Tab- or Pipe-delimited or fixed width
Convert Packed, Zoned and Binary fields, including Unisys Packed Decimal Unzoned/Packed-No-Zone (PNZ) with padding fields
Convert NULL and blank numerics
Convert REDEFINES and OCCURS fields, with nested OCCURS and OCCURS DEPENDING ON

Convert Enormous Files Quickly and Easily

TextPipe handles files of unlimited size, from 2 Gigabytes to 2 Petabytes!
Other applications attempt to load the entire file into memory, grinding your system to a halt
Perform Data Warehouse ETL (Extract-Transfer-Load) Tasks

Specify all text processing filters in one place (stream editing)

Combined power of awk, sed, grep, perl
Save filters for later use, include pre-defined filters
Self-documenting - you WILL understand what you (or others) did last week!

How it works

Awesome key Features

Why TextPipe?

icon-image Exceptionally fast
icon-image Handles files of unlimited size
icon-image Multi-award winning
icon-image Perform multiple operations simultaneously
icon-image Prompt support
icon-image Cost-effective
icon-image One text tool to rule them all

Preparing mainframe EBCDIC files for SSIS

SQL Server Integration Services reads flat files well, provided they are in ASCII or Unicode and each column has a clear delimiter or width. Files that come from an IBM mainframe are different. They use the EBCDIC character set, they are described by a COBOL copybook rather than a header row, and numeric fields are often stored as packed decimal (COMP-3), which no standard flat file source can interpret. Teams usually find this out after the first import produces unreadable columns.

TextPipe converts the file before SSIS sees it. You supply the copybook, TextPipe works out the record layout, translates the text fields to ASCII, unpacks the numeric fields and writes either delimited or fixed-width output. SSIS then treats the result as an ordinary flat file.

Sample input and output

Consider this fragment of a copybook:

01 CUST-REC.
   05 CUST-ID    PIC 9(6).
   05 CUST-NAME  PIC X(20).
   05 BALANCE    PIC S9(7)V99 COMP-3.

Each record in the data file is 31 bytes long. Opened in a text editor the name looks like garbage and the balance is a handful of unprintable bytes. After conversion the same record reads:

000123,JOHN SMITH,1234.56

The balance has been unpacked from five bytes of COMP-3 into a readable decimal value with the decimal point in the right place, and the sign is preserved for negative amounts.

Typical settings

  • Copybook import: load the copybook and select the record layout that matches the file.
  • Code page: choose the EBCDIC variant used by the source system, for example US EBCDIC 037.
  • Output format: delimited with a header row for easy column mapping in SSIS, or fixed width for a fixed-width source.
  • Record handling: support for REDEFINES and OCCURS clauses, and for files with no line breaks between records.

Practical applications

Data warehouse teams use the conversion as the first step of a nightly package: TextPipe runs from the command line, writes the converted file to a landing folder, and SSIS picks it up. It also suits one-off migrations, where a bank or insurer moves historical mainframe data into SQL Server for reporting.

Common pitfalls

  • If the file was transferred in text mode, bytes may already have been altered. Transfer mainframe data in binary mode.
  • A copybook that does not match the file produces shifted columns. Check the first few records against known values.
  • Variable-length records need the record descriptor words to be handled before conversion.

Related pages

Read the EBCDIC to ASCII converter and the COMP-3 packed decimal guide for field-level detail, and the SQL Server bulk insert guide for loading the output. The banking and finance case study describes a COBOL conversion project, and the data conversion solutions page lists related tasks.

Select your Edition

TextPipe has editions for every need

Professional

Developers / DBAs / Data Analysts
$399 / year 1 Year Free
Upgrades

EBCDIC/Mainframe

COBOL Copybooks

Variable length, multi-record

Works with SSIS

Automation - CLI/COM

Most Popular

Floating

Development Teams
$499 / year 1 Year Free
Upgrades

All features of Pro

145 data encodings

JSON, CSV, Tab, etc

Share across team

Automation - CLI/COM

Multi-CPU / App Server

Enterprise Data
$699 / year 1 Year Free
Upgrades

All features of Pro

Data and format encodings

Multiple instance

Utilize multiple CPUs

Automation - CLI/COM

TextPipe Case Studies

TextPipe is used across a broad range of industries

Banking and Finance
Banking & Finance
Cobol conversion / Documenting code
Systems Integrators
Database Consulting
Systems Integrators/High Tech
Print and Publishing
Print and Publishing &
Mail Houses

TextPipe Awards3

Winner of the SIA award as Best Application!
Excellent (5/5)
Excellent (5/5)
tucows5
Excellent (5/5)
5 Star Editor's Pick at ZDNet
seenonrocketdownload_black
EditorsPickAward
5star_filehungry
Excellent (5/5)
GET STARTED TODAY

FREE 30-DAY TRIAL

  1. Results are typical for a user with a modern workstation
  2. These are real user testimonials. Your results may vary
  3. Awards may no longer be present on the referred websites