COBSQ0002: token is badly defined

One of three things has happened:

Correct the definition or use the supplied SQLCA copybook. If the problem persists, report this error to your support representative. Trace files may be needed to resolve this problem. See Creating Debug Files in the Enterprise Developer documentation on Programming for details on how to create additional trace files that might be requested by your support representative.