DGL Statement Reference : CONSTANT

CONSTANT

Description
Declares constants (identifiers whose values do not change throughout the template or during execution).
The keyword CONSTANT appears only once in the declaration section, before the data-type assignments for constants. Each data-type statement can be followed by as many identifiers of the same type as you want to define. For example:

CONSTANT integer a:=1, b:=2, c:=3;

Similarly, as many type statements as you want to define can follow the CONSTANT keyword. For example:

CONSTANT
STRING activity_name := ’Print’;
FLOAT a:=3.243;
INTEGER c:=6;

Note:
The identifiers in the CONSTANT statement must have their values assigned in the statement. The value can be any expression that does not contain variables or parameters.
Syntax
CONSTANT
type identifier := value [, identifier := value, ...];
[ type identifier := value, ...;]
Parameters
 

 

Example
CONSTANT
STRING out_file :=’/usr/group/doc12.stm’ ;
STRING in_file := ’/usr/group/insert12.doc’;
INTEGER page_length := 66, page_width:=72;
See Also