Structure Expression Tokens

CodeGen

Structure Expression Tokens

 

Structure expressions are expressions that are valid for use anywhere in a template file, but only when a repository structure is being processed. CodeGen supports structure expressions via the <IF expression> and </IF [expression]> tags.

Expression

Description

<IF STRUCTURE_ASCII> 

The structure being processed is associated with an ASCII sequential file.

<IF STRUCTURE_FILES>

The structure currently being processed is assigned to one or more file definitions.

<IF STRUCTURE_HAS_UNIQUE_KEY>

 

The structure currently being processed has at least one unique key. You can access the first unique key by using a <UNIQUE_KEY> block.

<IF STRUCTURE_HAS_UNIQUE_PK>
 

The structure currently being processed has a unique primary key.

<IF STRUCTURE_ISAM>
 

The structure being processed is associated with an ISAM file.

<IF STRUCTURE_KEYS>

The structure currently being processed has one or more keys defined.

<IF STRUCTURE_LDESC>

The structure currently being processed has text in its long description field.

<IF STRUCTURE_MAPPED>

 

The structure being processed is mapped to another structure.

<IF STRUCTURE_RELATIONS>

The structure currently being processed has one or more relations defined.

<IF STRUCTURE_RELATIVE>

 

The structure being processed is associated with a RELATIVE file.

<IF STRUCTURE_TAGS>

The structure currently being processed has one or more tags defined.

<IF STRUCTURE_MULTIPLE_TAGS>

The structure currently being processed has more than one tag defined.

 

<IF STRUCTURE_SINGLE_TAG>

The structure currently being processed has exactly one tag defined.

 

<IF STRUCTURE_USER_DEFINED>

 

The structure being processed is associated with a user defined file.

<IF STRUCTURE_UTEXT>

The structure currently being processed has text in its user defined text field.

 

 


Copyright © 2012  Synergex International, Inc.