Structure vocabulary
Structure
A description of input data flows. The structure description determines how the input data flow is to be translated. For Standard Scripts, version 1, the structure description is initiated and concluded by the functions Begin Structure and End Structure. Thus, one structure may consist of several descriptions of input data flows.
Record Group
An assembly of records that are logically connected with each other and that should be in a sequence. A record group may contain other record groups.
Record
A record consists of a combination of composites and/or data elements. Each record must contain a Record Identifier, which is a data element specifically selected to be the identity element. The records are the constituents that are used directly in the structure to describe the input data flow.
Composite
A combination of two or more existing data elements. A composite is a subgroup within a record.
Data element
The smallest constituent in a record. The data element is the level that contains the actual data.
Virtual records
A 'non-existing record' created to mark that a certain spot in the structure has been passed, for example during a processing. A virtual record does not exist in reality, and consequently does not correspond with any actual input data.
Record variables
The Developer works with record variables. A record variable is a handle that may hold any record definition. Before the variable can be used, it must be allocated a record definition with the function Allocate Record (Standard Script ver. 1) or Allocate Record (Standard Script ver.2).
Pre-defined record variables
CurrentRecord
The function Parse Infile (Standard Script ver. 1) and Parse Infile (Standard Script ver. 2) works with the pre-defined record variable CurrentRecord. CurrentRecord is a handle that holds the definition of the currently processed record. When a record from the infile is matched with a record in the structure, the corresponding record definition is automatically allocated to CurrentRecord.
CurrentRecordPath
When parsing an infile, the variable CurrentRecordPath may be used to displays the current position in the structure description. The level in is indicated in accordance with the standard for file structures.
Example: /G01/G02/ZZZ
Map procedure
A Script procedure that is associated to a specific element and mapping type within an imported structure or inherited structure. Map procedures can only be created and edited in the context of a structure element in a Script that imports or inherits a structure.
Add to Map procedure
When an inherited map procedure is displayed it contains a header that reveals where the map procedure is defined and in what Script it is mapped.
Mapping
Specifies which map procedure to execute for a specific structure element and mapping type. A mapping executes the specified map procedure during structure parsing of a file. For example, when a certain record of type "Order line" is found, the mapping type "OnRecord" specifies that a Script is to execute its local map procedure. The available options for a mapping are:
-inherited script name-(inherited map procedure)
Execute map procedure defined in the specified Script.
Inherited map procedures ar identified by inherited Script name.-no mapping-
Execute no map procedure.-local-
Execute the map procedure defined in the current Script.-inherit-
Execute the same map procedure as the closest inherited Script is configured to execute. This option is only available in structures that is imported by inherited Scripts. Which map procedure to call is determined when the Script is compiled. When the inherited Script also specifies inherit option the inherited map procedure to call is inherited in several stages.For examples, see Examples of -Inherit- usage.
Parsing
Interpreting a file against a structure.
Special characters
Characters reserved for special syntax purposes, for example as separators between entities, in a file. The special characters may be overridden.