Procedures as applications
You can write applications entirely as procedures. If you are using QMF in the CICS® environment, you can write linear procedures, which are procedures that include only QMF commands or synonyms that issue QMF commands. If you are using QMF in the TSO environment, you can write procedures with logic in addition to linear procedures. Procedures with logic can include REXX statements and functions in addition to QMF commands and command synonyms.
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.