|
Using externally defined messages in a message file is more about communications and ease of program maintenance than it is about re-use of message IDs. There are many advantages:1) It makes it easier to monitor for different errors. (I hate it when commands and programs send CPF9898 escape messages.) 2) When retrieving messages it makes it easier to figure what's going on without having to programatically parse the message text. 3) To find which part of a program sent an error it's easier to searching for a unique message IDs in source is much easier than searching for text strings or for the dreaded CPF9898 message ID. 5) The text of the messages are stored externally, like file record formats, which makes life easier all around, so if you want to change the text of a message you can do so without re-compiling the program (or programs).
It might be helpful if there was a GO CMDREF variant to cross-index what programs call what messages, unless we use a standard &# for ME (identify &PGM that sent the message)
There are probably many more that I can't think of right now. [Can you tell that I'm a zealous message handling advocate? ;-) ]IMHO all messages whether used once or many times should be defined in a message file.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.