This statement builds a message using a message definition. The BUILD MESSAGE function returns the built message in &SYSMSG.
This statement has the following format:
&CONTROL NOSHRVARS
-EXEC $CACALL OPT=ACTION
ACTION=BUILD
CLASS=MESSAGE
NAME='MESSAGE=message id'
PARMS='PROCNAME=procedure name
[P1=parameter1... P10=parameter10]'
A required parameter giving the identifier of the message to be built.
A required parameter giving the name of the procedure that requested the message to be built.
Optional parameters providing data values to be substituted into the message definition.