Specifications
Chapter 14. Statement Reference
336
Additional Explanation for Statements
■ Effective range of labels
Labels are effective only in a file.
■ Definition of common variables (by
COMMON statement)
In an object to be executed first (that is, in a main object), you should define all common vari-
ables to be accessed. In any other objects, declare common variables required only in each
object. If a first executed object is linked with an object where an undefined common vari-
able(s) is newly defined, then an error will result.
■ Definition and initialization of register variables (by
DEFREG statement)
As for work variables, you should declare required register variables in each object. You may
specify an initial value to a register variable in each object; however, giving different initial val-
ues to a same register variable in more than one object will result in an error in linking process.