The Query/400 (or Query for iSeries or whatever it is nowadays) product can do this.
I'd strongly recommend that you tell your users to dump using Query/400 and move to something from last century like Query Manager (QM) instead; but still, Query/400 can do it.
QM can also run Query/400 queries if users want to keep old query definitions around. QM has two user interfaces -- a "prompted" mode that carries something of the Query/400 look&feel forward, and a "SQL" mode that should be more obvious to developer types. If the STRQM command exists, then the company already has QM.
Tom