Class: Runtime
Description
This method generates error messages for messages pre-defined in the System Messages table (STBLMSG).
Syntax
Runtime.setErrMSG(String table, Number msg, String varList)
Parameters
table |
The table name under which the error will be reported. |
msg |
The message number that corresponds to the message that needs to be displayed from the STBLMSG table. |
varList |
A list of host variables that will fill the variable locations of the message being created. |
Returns
Void
When Became Available
Profile v6.3
Example
|
This method must always contain a clause on the same line of code to check the value of ER and quit if this method has set the variable. |
When multiple variables are required, those variables must be quoted and delimited with the tilde symbol (~).
do Runtime.setErrMSG(“DEP”,125,dep.gcrtfcid)
do Runtime.setErrMSG(“DEP”,1801,x)
do Runtime.setErrMSG(“DEP”8472)
do Runtime.setErrMSG(“DEP”762,“DESC~K~J”)
do Runtime.setErrMSG(“DEP”,7531,“DI”)