There are a few things to try.
First, do a STRSQL and then copy & paste that instruction to see if it works. If there is a syntax error it will tell you what it is.
Second, If you file is not being journaled, you need to add COMMIT(*NC)
Third, be sure you are not in DEBUG mode running over a *PROD library,