Properties and their overrides are treated consistently in the EGL syntax:
isReadOnly isReadOnly = yes isReadOnly = no
If you include the name of such a property without explicitly stating a value, the value is yes. If you include neither the property name nor the value, however, the default varies by property. The default for isReadOnly, for example, is no.
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}}
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.