変数の設定値の型が誤っています。
DEFINE
{
const integer OK_END =0;
const integer NG_END = -1;
const integer sloop_max = "30"; // string値がinteger型変数に割り当てられています
}
DEFINE
{
const integer OK_END =0;
const integer NG_END = -1;
const integer sloop_max = 30; // string値でなくinteger値を割り当てました
}