OPNQRYF (Open Query File) command

You can query remote files using the Open Query File (OPNQRYF) command, but only if the remote files are on a target iSeries™ server or a target System/38™.

If multiple remote files are specified on one OPNQRYF command, they must all exist on the same target server and use the same remote location information.

If the target server is an iSeries server or a System/38, a query request is created and sent to the target server using the DDM file that the query refers to. If the target server is other than an iSeries server or a System/38, the query request cannot be processed and an error message is created. However, the query utility on the System/38 can be used to query remote files that are other than iSeries files.

If the target server is a System/38 and the source is an iSeries server, or if the target server is an iSeries server and the source is a System/38, OPNQRYF cannot use group-by and join functions. An error results.

Related reference
i5/OS database query
System/38-compatible query utility (Query/38)