Table of Contents

Search

  1. Preface
  2. Introduction to Data Transformation
  3. Data Processor Transformation
  4. Wizard Input and Output Formats
  5. Relational Input and Output
  6. XMap
  7. Libraries
  8. Schema Object
  9. Command Line Interface
  10. Scripts
  11. Parsers
  12. Script Ports
  13. Document Processors
  14. Formats
  15. Data Holders
  16. Anchors
  17. Transformers
  18. Actions
  19. Serializers
  20. Mappers
  21. Locators, Keys, and Indexing
  22. Streamers
  23. Validators, Notifications, and Failure Handling
  24. Validation Rules
  25. Custom Script Components

Data Transformation User Guide

Data Transformation User Guide

COBOL Data Definitions

COBOL Data Definitions

The COBOL copybook that you use to create a Data Processor transformation can contain data definitions of any complexity. The COBOL copybook and input must comply with data definition rules described in this section.

Supported Data Definitions

The COBOL import supports data definitions of any complexity. For example, the data definitions can use the packed decimal (
COMP-3
), binary (
COMP-1
,
COMP-2
, or
COMP-4
), and logical decimal point (
99v99
) data types. They can contain features such as
REDEFINES
,
OCCURS
, and
OCCURS DEPENDING ON
clauses.

Data Definition Rules

A COBOL data definition must comply with the following rules:
  • No more than 72 characters for each line, and no text beyond column 72
  • The first line must be a remark, with a
    *
    in column 7, or it must start with a level number
  • The first level number must be in column 1 or 8.

Unsupported Data Definitions

The Data Processor transformation does not support the following COBOL data definitions:
  • The special level numbers 66, 77, and 88
  • USAGE
    clauses at a group level
  • INDEXED BY
    clauses
  • POINTER
    and
    PROCEDURE-POINTER