The keyword is not valid for definitions in the main source section.
20
Cause . . . . . : The STATIC keyword is only valid in data definition specifications in subprocedures. The keyword is ignored.
Recovery . . . : Remove the keyword. Compile again.