Message Files

Message files use so that the COBOL always displays them using the appropriate codeset for the environment an application is running in. You write each message file as an ASCII file with the file extension .err, and then compile it into a language file (which has the file extension .lng). To make messages available in more than one language, you write one message file per language, and compile them into separate .lng files. You then add each .lng file to the mflangnn.lbr library file appropriate to the required language, where nn specifies the language.

Always add a message file to the default language file mflangdf.lbr.

You can open, read and close message files with the NLS library routines.