ILE COBOL Programmer's Guide

How to Continue Mixed Literals on a New Line

To continue a mixed literal onto another line of source code, do all of the following:

For example:

-A 1 B

  ·
  ·
  ·
01 DBCS1 PIC X(12) VALUE "0EK1K2K30F - "0EK4K50F".
  ·
  ·
  ·

The value of DBCS1 is "0EK1K2K3K4K50F".

The shift-in character, quotation mark, and shift-out character used to continue a line are not counted in the length of the mixed literal. The first shift-out and final shift-in characters are counted.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]