Defining Functions › Messages › Basic Properties of Messages
Basic Properties of Messages
CA 2E provides default system names for messages and provides the means to override the message file names and message identifiers. CA 2E provides six message types: completion, error, execution, information, retrieval, and status. Parameters can be defined for message functions. Parameters correspond to fields or files.
CA 2E provides default messages that correspond to default logic processing inherent in CA 2E external functions. These messages include default existence and not found messages created for all files.
The message functions are:
- Send Error Message (SNDERRMSG)—This function specifies that an error message be sent to a calling function. Normally, this function is used to provide diagnostic messages arising from user validation.
- Send Information Message (SNDINFMSG)—This function specifies that an informational message be sent to the message queue of a calling program.
- Send Completion Message (SNDCMPMSG)—This function specifies that a completion message be sent to the function that called a standard function. Typically, completion messages are used to indicate that a process completed successfully.
- Send Status Message (SNDSTSMSG)—This function specifies that a status message be sent to a calling function. Normally, this function is used to provide information about the progress of a long-running process.
- Retrieve Message (RTVMSG)—This function specifies that message text be retrieved from the message file into a function.
- Execute Message (EXCMSG)—This function specifies that a request message be executed. The request can be any CL command.