In addition to running QMF batch
in TSO and
ISPF, you can run QMF as
a native z/OS® batch
You can use JCL like the following example.
When you run QMF in
QMF functions that require TSO or
ISPF do not work when you run QMF in
The default user ID suffix is not available; you must use the
fully qualified data set names to export or import files.
You cannot use procedures with logic (REXX procedures). To run QMF with REXX in a non-TSO address
space, you must use IRXJCL, as illustrated in Figure 2.
The REXX program
that is listed here uses the QMF callable
interface to start QMF and
run QMF commands in batch mode.
These JCL samples allocate a spill file. Instead
of allocating a file for spill data, you can use the DSQSPTYP parameter
to spill data to extended storage.
When running a QMF procedure with logic or REXX exec
in QMF batch mode, ensure to exit the exec with the REXX EXIT statement by
specifying the proper return code. You must perform this step to pass the correct return code to the
batch job step. If you do not use the EXIT statement with the proper return code, the batch job
might indicate the wrong return code. For example, an error might occur in the QMF procedure with
logic that is not indicated in the batch job return code. For more information, see Messages with the REXX
EXIT statement and Branching to error-handling subroutines.