AIX | HP-UX | Linux | OS/2 | OS/390 | OS/400 | PTX | SUN | Win NT |
X | X | X | X | X | X | X | X | X |
Purpose
Contains the message text returned from a call to a built-in function or to language environment when an error occurs.
You can use the DTW_DEFAULT_MESSAGE variable in any part of the Net.Data macro.
This variable is a predefined variable, it is not recommended to modify its value. Use the variable as a variable reference.
Examples
Example 1: A message stating whether the function completed successfully
@function1() %IF ("$(RETURN_CODE)" == "0") The function completed successfully. %ELSE The function failed with the return code $(RETURN_CODE). The error message returned is "$(DTW_DEFAULT_MESSAGE)". %ENDIF
Example 2: The default text for when a function returns a non-zero return code
%MESSAGE{ default: {<h2>Net.Data received return code: $(RETURN_CODE). Error message is $(DTW_DEFAULT_MESSAGE)</h2> %} : continue %}
The user sees the default error message, if a function returns a return code other than 0.