Question: how to save qmf query?
Answer: If you are on the QUERY, FORM, or PROC panel, and you want to save the currently displayed object, enter: SAVE. ... 
If you are on any QMF panel, and you want to save a currently loaded object even though it is not currently displayed, enter: SAVE object AS objectname.