Resolution:
Correct the SQL statement and recompile the program. If you are using a null indicator table, make sure you do not use the group name. For example, if the following is a definition of a null indicator table:
01 staff-null-tbl. 03 staff-null-ind occurs 7 times pic s9(04) comp.
you should specify staff-null-ind rather than staff-null-tbl in your query.