So I'm trying to trouble shoot a large script that's supposedly worked forever at my company, but I can't get it to run past the first declare statement in my testing. I even tried running the declare statement by itself, and it gives the same error:
declare li_aut smallint;
I've tried it both with and without the semicolon, and I get the same thing every time. SQLCODE 131, State 42000, which is a generic syntax error. Not useful.