The DECLARE statement explicitly assigns a data type to and names a variable, an entire array, a function, or a constant. Examples DECLARE INTEGER Catalog_num(100 TO 200) DECLARE DOUBLE FUNCTION Cube_volume (REAL) DECLARE GFLOAT CONSTANT Lambda = .00000000000005
1 – Syntax
Variables: DECLARE data-type decl-item [, [ data-type ] decl-item ]... decl-item: { unsubs-var-name } { array-name ([int-const1 TO] int-const2,... ) } DEF Functions: DECLARE data-type FUNCTION { def-name [ ( [ def-param ],... ) ] },... def-param: [ data-type ] Named Constants: DECLARE data-type CONSTANT { const-name = const },...