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_INFO Details (↑ National Language Support Routines)
 Key Summary                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Description:
 
     This routine allows you to both get and set information about the
     national language. With function-code = 2 (set information) the change
     made will only apply to the program that made the call.
 
  Parameters on Entry:
 
     With function-code = 1:
        info-category        Category of information to get from the
                             NLS module:
 
                             1 = Currency symbol
                             2 = Thousands separator
                             3 = Decimal separator
 
     With function-code = 2:
        info-category        Category of information to set:
 
                             1 = Currency symbol
                             2 = Thousands separator
                             3 = Decimal separator
 
        info-buffer          Information to set (null-terminated).
 
  Parameters on Exit:
 
     With function-code = 1:
        info-buffer          The information requested.
 
        status-code          Indicates whether the routine was successful:
 
                              0 = Success
                             40 = NLS module not initialized
     With function-code = 2:
        status-code          Indictes whether the routine was successful:
 
                               0 = Success
                              40 = NLS module not initialized
                             405 = Failure
 
     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
                                    -♦-