KLVDM022 STATIC VARIABLE "name" IS UNDECLARED; SCOPE(scope) ASSIGNED

Explanation

The dialog manager detected a reference to variable, name, which was not defined in the DECLARE section of the dialog. The NOTDECLARED(REPORT) option was requested, either in the KLVINDM member of RKANPAR or on the OPTION statement in the dialog. KLVDM015 follows this message and shows the dialog that contains the undeclared variable.

Note: It is acceptable for a dialog to have undeclared variables; this message is intended as a debugging tool.

System action

name is treated as if it were declared as scope scope, and the dialog continues executing. The DEFAULTSCOPE keyword on the OPTION statement may be used to change the default scope. This message is issued only once for each individual reference to the variable.

User response

Review the dialog shown in message KLVDM015 to determine the proper variable scope. Then add it to the DECLARE section.

Message Type

LOG, VIEW