STRICMP: Comparing Character Strings and Ignoring Case

 The STRICMP function compares two character strings using the EBCDIC or ASCII collating sequence, but ignores case differences.

  • If the first string is less than the second string, STRICMP returns a negative value.
  • If the first string is greater than the second string, STRICMP returns a positive value.
  • If the first string is equal to the second string, STRICMP returns zero.

Compare Character Strings and Ignore Case

STRICMP(string1, string2)

where:

string1, string2

Alphanumeric

Are the strings to compare, or temporary fields that contain the strings.