skip to main content

Compiler and Runtime : Compiler : Compiler Directives : DEFINE Directive

DEFINE Directive
The DEFINE directive defines a compiler constant.
>> DEFINE ConstantName AS ConstantValue [OVERRIDE]
Syntax:
1.
ConstantName is the name of the constant to be set.
2.
ConstantValue is the value of the constant.
General rules:
1.
2.
Use the OVERRIDE clause to re-define a previously set constant.
Alternative syntax
The following equivalent syntax is supported for compatibility:
$SET CONSTANT ConstantName ConstantValue
The dollar sign must appear in the source indicator area.
Example
Define the DEBUG compiler constant set to 1:
           >>DEFINE DEBUG 1
       program-id. eg001.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left