log_exp - IS ASSIGNED

Syntax

... <fs> IS [NOT] ASSIGNED ...

Effect

The logical expression checks, whether a memory area is assigned to a field symbol <fs> . The expression is true if the field symbol points to a memory area. For <fs>, a field symbol, specified with FIELD-SYMBOLS, must be declared .

The expression is true with the addition NOT, if no memory area is assigned to the field symbol.

Example

Assignment of a data object to a field symbol if no memory area has been assigned already.

FIELD-SYMBOLS <fs> TYPE c.

...

IF <fs> IS NOT ASSIGNED.
  ASSIGN 'Standard Text' TO <fs>.
ENDIF.

...