DSPOBJD *ALL/QRYNAME *QRYDFN
On the systems that I’ve worked on in recent years, the fastest way to locate some object has been:<pre>
I’m not sure why leaving the ObjectType off of the request has been faster, though I could make some guesses.
And the resulting list includes all objects named “objectname” regardless of what kinds of objects they are. Usually, a particular name isn’t duplicated very many times, so the list is short. Seeing the one that is a *QRYDFN or *QMQRY by eye is just about as fast as taking the time to type it in at the beginning.