If you are writing an application that operates on a procedure in QMF temporary storage, you cannot write your application as a procedure. When you run a procedure, it becomes the current procedure in QMF temporary storage.
For example, if you write your application as a procedure and code your application to save the current procedure in QMF temporary storage, the application saves itself; it is the current procedure in QMF temporary storage while it is running.