Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Char fields store alpha data that is either SBCS, mixed SBCS and DBCS, or DBCS-only. Chars are classified as strings.

Depending on the database type, Char may or may not treat trailing blanks as significant. If trailing blanks are not desired, a String field should be used.

...

  • Working fields defined with TYPE(*CHAR) where the field length is 256 or less should operate similarly to alpha fields.
  • Fields of type String or Char and length of 256 or less may be used almost anywhere that fields of type Alpha may be used.

...

  • If a field is a fixed character length of 256 or less, use an Alpha field.
  • If you want trailing blanks to be significant, use a String field.

Also See

1.1.2 Alpha

1.1.3 String

1.1.6 NChar