GFORM


SWDBC

 

The GFORM definitions defines a decimal numeric variable or an array of such. If an array is defined, each array item may be initialized. It uses one of the following formats:

 

(1)

[label]

GFORM

[*]{size}

(2)

[label]

GFORM

[*]{value}

(3)

[label]

GFORM

[*]{size}({arraysize})

(4)

[label]

GFORM

[*]{value}({arraysize})

(5)

[label]

GFORM

[*]{size}({arraysize}),({value}),...,({value})

(6)

[label]

GFORM

[*]{size}({arraysize},...,{arraysize})

(7)

[label]

GFORM

[*]{value}({arraysize},...,{arraysize})

(8)

[label]

GFORM

[*]{size}({arraysize},...,{arraysize}),({value}),...,({value})

(9)

[label]

GFORM

[*]{size}({arraysize}), INITIAL {dvalue}, ...

 

Where:

label

Optional. A Data Definition Label.

*

Optional. Denotes the item or file as being COMMON.

size

Required. A decimal constant or EQUATEd value indicating the variable size The size is specified as the number of integer digits, followed by an optional decimal point and optional number of fractional digits.

value

Required. A numeric Literal (i.e., "3.45").

dvalue

Required. A decimal immediate value or a numeric literal.

arraysize

Optional. An integer decimal constant, CONST variable or EQUATEd value indicating the number of array items.

Flags Affected: NONE

Note the following:

  1. GFORM variables follow the same rules as FORM variables when declaring Global Data Items..

  2. The GFORM syntax format (9) is only supported when the SWDBC mode is enabled using the compiler (-zc=3) option.

 

 

See Also: Example Code, FORM, INTEGER, Numeric Strings, Data Definitions

 



PL/B Language Reference