Is this from a regular WRKQRY or a WRKQMQRY? Could it have been created from a data transfer ? You may have to put together a quick pgm to dump the qry definitions to a spool file,copy that to a flat PF record length 132 then scan the file looking for the output file name. The other option is to display every query and look for it manually. Depending on the number of queries you may have this may take a long time.