Creating a Guideline from a COBOL Copybook

Requires EDISIM 6.6 or later.

Copybook File Format

EDISIM will support most COBOL keywords except:

These OCCURS clauses will just import the upper limit as the repeat count, since we currently support only a maximum repeat count:

OCCURS n TO n TIMES

OCCURS integer-1 TO integer-2 TIMES DEPENDING ON remainder of clause

Importing the Copybook

When importing a COBOL copybook, Standards Editor automatically translates 'soft hyphen' characters (hex AD) into regular hyphen characters (hex 2D).

To import a COBOL copybook into Standards Editor for use as a delimited or fixed-length-field guideline:

  1. Open Standards Editor.

  2. Choose File > Import > Import COBOL Copybook and open.

  3. Select the copybook.
    There is a sample Address.cob in EDISIM’s Samples directory.

    Additional Checkbox Options:

    Start reading in column”:

    This option allows you to specify a record start position. COBOL copybooks sometimes have an internal identifier or counter at the start and/or end of each line.  This option allows you exclude those areas from the import. For example, your copybook has a record ID in the first six positions of each copybook record. You might check this box and specify that the import start with column 7. Default is column 1.

    Limit Input Record Size to next…”:

    This option allows you to limit record size to a certain number of characters. Default is 72 characters.

  1. Have a look at the guideline:

  2. Choose File > Properties > User-Defined Standard and fill out the information as described in Splitting Flat Files with Document Splitter on page Splitting Flat Files with Document Splitter.