You declare identifiers and their data-types in declaration statements in the declaration part of each template section.
Declarations for global identifiers and parameters are made in the initiation section - these identifiers can then be used throughout the template.
Declarations for local identifiers, i.e., identifiers to be used only in the relevant segment, are made after each segment identifier line. Procedures start with declarations of parameters and local identifiers.