Table of Contents

Search

  1. Preface
  2. Libraries for Industry Standards
  3. Using Libraries
  4. Descriptions of the Libraries
  5. Generate Library Objects

Libraries Guide

Libraries 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

0 COMMENTS

We’d like to hear from you!