cobol1.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CBL_NLS_COMPARE Details (↑ National Language Support Routines)
 Key Summary                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Parameters on Entry:
 
     string1                 The first string.
 
     string2                 The second string.
 
     string1-length          Length of the first string.
 
     string2-length          Length of the second string.
 
  Parameters on Exit:
 
     result-byte             Result of the comparison:
 
                              0 = The two strings have equal weights
                             -1 = string1 < string2
                             +1 = string1 > string2
 
     status-code             Indicates whether the routine was successful:
 
                              0 = success
                             40 = NLS module not initialized
 
     This routine can be used only from a program that was compiled with
     the NLS directive. For more details on National Language Support see
     the chapter National Language Support in your COBOL System Reference.
 
     See also NLS directive
                                    -♦-