An attempt to execute a DML statement like this in DMLO:
OBTAIN record-name WITHIN set-name USING key-name
is resulting in an E2001 error message.
The E2001 can be misleading. This error can be issued if the set-name in the statement is incorrect (i.e. not in the subschema).