Specifying a Start Value

When you declare an internal variable with the DATA statement, you implicitly assign the data-type specific initial value as a start value to the field. For a list of the initial values of the various data types, see the table in Predefined Elementary Data Types.

To change the start value of a field in the program, use the <value> parameter of the DATA statement. The syntax is as follows:

Syntax

DATA <f>..... VALUE <val>.

The start value of the field <f> in the program is set to <val>, where <val> can be

Examples of start value specifications:

DATA: COUNTER TYPE P VALUE 1,
DATE TYPE D VALUE '19920601',
FLAG TYPE C VALUE IS INITIAL.

After this data declaration, the character string FLAG contains its type specific initial value SPACE.