We have a cloned Datacom database (cataloged it with a new DBID, see NEWDBID parameter) and we can access it via CA Ideal programs, using the ASSIGN DBID command.
Is there any similar command so we can access the cloned tables from DQRY too?
The only way to access data from a cloned table via DQRY is implementing a Dataquery DBID Exit. You can find details about this exit in "DBID Exit" section of Datacom documentation.
Additional details about this exit can be found on "DBID Exit" section of Datacom documentation.