Context:
Procedure Division Statements
![]() |
|
declare i1 as binary-long
display i1
*> Optionally, the variables can be initialised inline
declare c2 as condition-value = true
display c2
declare string-list2 as string occurs 3 = table of string("Bill", "Ben", "LittleWeed")
See also the Local Variables sample, which is available from Start > All Programs > Micro Focus Enterprise Developer > Samples > Visual COBOL Samples, under COBOL for .NET.
When no explicit type is declared for a variable, but the value is a non-integer numeric (for example declare var1 = 1.23), it is assumed to be of type float-long.