Embedded SQL uses the %msg variable and not the %message variable. The code should also initialize %msg before trying to use it.
The code as it stands:
ClassMethod Install(ByRef pCommandInfo) [ Internal ]
...
&sql(SELECT COUNT(*) into :count FROM %IPM_Repo.Definition WHERE Enabled = 1)
$$$ThrowSQLIfError(SQLCODE,%message)
Embedded SQL uses the
%msgvariable and not the%messagevariable. The code should also initialize%msgbefore trying to use it.The code as it stands: