EGL Reference Guide for iSeries

Primitive types at declaration time

Consider the following declarations:

  DataItem
    myItem CHAR(4)
  end
  Record mySerialRecordPart type serialRecord
    {
       fileName="myFile"
    }
    10 name CHAR(20);
    10 address;
      20 street01 CHAR(20);
      20 street02 CHAR(20);
  end

As shown, you must specify a primitive type when you declare these entities:

You may specify the primitive type of a substructured structure item like address. If you fail to specify the primitive type of such a structure item but you reference the structure item in your code, the product makes these assumptions:


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