Database query allows accessing of either multiple local files or multiple remote files (by using DDM files) at the same time, but not both.
If all the files are remote, they must all reside on the same target server. Also, the DDM files that refer to the remote files must all specify the same remote location information. If this restriction is not met, an error message is displayed to the user of iSeries™ Access Family or to the user of the Open Query File (OPNQRYF) command who requested the query.