EGL Reference Guide for iSeries

Syntax for specifying properties and their overrides

Properties and their overrides are treated consistently in the EGL syntax:

The next example shows an SQL record part declaration, which includes two record properties:

  Record myRecordPart type SQLRecord
    { tableNames = myTable,
      keyItems = myKey }
    myKey CHAR(10);
    myOtherKey CHAR(10);
    myContent CHAR(60);
  end 

The next example shows a variable declaration that uses the previous part as a typedef and that overrides one of the two record properties:

  myRecord myRecordPart {keyItems = myOtherKey};

The next example shows the same variable declaration, which also overrides a property of a record item:

  myRecord myRecordPart {keyItems = myOtherKey, 
                         myOtherKey {isReadOnly}} 


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