1 2 6 Default Value

LANSA Technical

1.2.6 Default Value

Specify the default value for a field.  This value is used as defaults on screens, reports and fields in a function.

If no default value is specified, the field defaults to *BLANKS (blanks) for character fields, *ZERO (zero) for numeric fields and *NULL (null value) for other fields.

Rules

Allowable values include:

  • system variable such as *BLANKS, *ZERO, *DATE,*NULL or any other variables specifically defined at your installation.
  • alpha literal (in quotes) such as 'NSW', 'BALMAIN' or 'Australia'.
  • numeric literal such as 1, 10.43, -1.341217

Additional rules:

Warnings

Tips & Techniques

Platform Considerations

Also See

General Variables

Ý 1.2 Field Definitions