You have either specified a COBOL system directive in the wrong place or specified an invalid COBOL system directive in a $SET statement in your program.
Resolution:
For example, you can specify a $SET LIST anywhere, but a $SET PREPROCESS only on the first line.