Running batch from a terminal

You can run QMF from a terminal to produce a report. For example, you can write the procedure in Figure 253 to produce a report located in CICS auxiliary storage. (QMF treats lines that begin with "--" as comments in QMF procedures.)

Figure 253. Producing a report located in CICS auxiliary storage
-- Procedure name: STATRPT1__PROC
   --
   -- Example QMF procedure to create an auxiliary CICS
   -- temporary storage queue named STATRPT1
   --
      RUN   QUERY STATRPT1__QUERY (FORM=STATRPT1__FORM)
      PRINT REPORT (QUEUENAME=STATRPT1,QUEUETYPE=TS)
   --
   -- End of procedure

Execute the QMF transaction as described here to run this procedure in batch mode:

QMFE M=BATCH,I=STATRPT1__PROC

QMF runs this transaction without displaying any screens. Upon successful completion of the procedure, the report is located in CICS storage queue STATRPT1. You can then view the report using the CICS-supplied transaction CEBR:

CEBR STATRPT1
[ Previous Page | Next Page | Contents | Index ]