Data Transformation Engine Type Tree Importers Reference Guide
Chapter 2 - Using the Importer Wizard  COBOL Copybook Importer 
Type Tree Importers Reference Guide 
14 
Wrapped and Unwrapped Copybook Format 
The COBOL Copybook Importer automatically processes copybook files in wrapped 
and unwrapped formats. 
During the Design Studio installation, two COBOL copybook example files are 
installed: wrapped.cpy and unwrapped.cpy. These files are used to test the 
COBOL Copybook Importer. To access these files, click Start > Programs > 
Mercator version > Design Studio > Examples, then select Design Studio from 
the list of Mercator Products then choose COBOL Copybook. 
Wrapped Format 
A wrapped copybook file has COBOL source records that are terminated by either 
a carriage return/line feed (Hex 0D 0A) or line feed (Hex 0A). Each source record 
can be fixed or variable length. The important distinguishing characteristic of a 
wrapped copybook file format is the terminator (linefeed or carriage 
return/linefeed) at the end of each source record. 
Note  Ensure that the last statement ends with a carriage return/line feed or linefeed 
as appropriate. 
Unwrapped Format 
An unwrapped copybook file has fixed 80-byte source records with no line feed or 
carriage return/line feed at the end of each source record. 
Copybook Specifications 
The COBOL Copybook Importer uses as input a copybook file (.cpy) containing 
data description entries, as defined by the ANSI X3.23 specification with the 
following exception and additions: 
♦  Each entry must have either a data-name or the reserved FILLER clause. (This 
is an exception to the ANSI X3.23 specification.) 
♦  The COBOL Copybook Importer also supports these USAGE clauses: 
!  COMPUTATIONAL-3 
!  COMPUTATIONAL-4 
!  COMPUTATIONAL-5 
!  COMPUTATIONAL-X 
!  COMP-3 










