Step 4--Start QMF: DSQ2EINV

This section describes tailoring the QMF invocation EXEC and establishing QMF as an ISPF dialog (optional).

Step 4A--Tailor the QMF invocation exec: DSQ2EINV (optional)

The sample QMF invocation exec, located on the production minidisk, is executed when a user wants to invoke QMF interactively in the VM environment. The first part of the exec, DSQ2EINV, is shown in Figure 36. Modify only the indicated variables to tailor the exec for your installation.

Using DSQQMFE and ISPSTART

The parameter values that exist in DSQ2EINV are used unless you specify different values when you invoke the exec. You can do this through DSQQMFE or the ISPSTART command. Parameters values specified in this way override those set in the QMF callable interface REXX exec DSQSCMDE, which is on the production minidisk.

Note: DSQ2EINV is only a sample QMF invocation exec. The necessary links to minidisks, FILEDEFs, SQLINIT, and ISPSTART commands are described clearly in simpler QMF invocation exec. These execs, DSQ2EIN1 (with ISPF) and DSQ2EIN2 (without ISPF), are located on the production minidisk. You may find them useful in constructing your own QMF invocation exec to match your environment requirements.

For clarification of ISPF files, see ISPF for VM Dialog Management Services and Examples

Figure 36. Sample QMF Invocation exec (DSQ2EINV)
/*------------------------------------------------------------------*    
  *                                                                  *    
  *  Sample QMF invocation EXEC                                      *    
  *                                                                  *    
  *  EXEC NAME:         DSQ2EINV EXEC                                *    
  *                                                                  *    
  *  Status: Version 7 Release 2 LeveL 0                             *    
  *                                                                  *    
  *  Input:    DB(dbname)        - optional, default 'SQLDBA'        *    
  *            PGM(program)      - optional, default 'DSQQMFE'       *    
  *            MODE(runmode)     - optional, default 'I'             *    
  *            PROC(procedure)   - optional, no default              *    
  *            CMSSUB(subset_restriction) - optional, default 'YES'  *    
  *            ISPF(use_ispf)    - optional, default 'YES'           *    
  *                                                                  *    
  *  Note:  If you have any level of DB2 VM, GDDM, ISPF, QMF or      *    
  *         QMF NLF already attached when you execute this exec,     *    
  *         the corresponding disk in this exec will not be linked,  *    
  *         and the existing disk will be used.                      *    
  *                                                                  * 
  *------------------------------------------------------------------*/
  
  parse upper arg parm1 parm2 parm3 parm4 parm5 parm6 junk                
                                                                         
  lchar = 'E'                     /* QMF language feature identifier */   
                                                                         
 /*------------------------------------------------------------------*    
  *  The following are the variables which may need to be tailored   *    
  *  for your installation.                                          *    
  *  Note:  If you are using SFS directories, replace the link       *    
  *         information with 'FILEPOOL:USERID.DIRNAME'.              *    
  *------------------------------------------------------------------*/   
                                                                          
  dcssname = 'QMF720'||lchar      /* QMF DCSS name for ISPSTART      */   
  sql_link = 'SQLMACH 195 195'    /* DB2 VM minidisk link information*/   
  qmf_link = 'P697F4BA 400 400'   /* QMF Production minidisk         */   
                                  /* link information                */   
  dbname = 'SQLDBA'               /* set default database name       */   
  program = 'DSQQMF'||lchar       /* set default QMF program name    */   
  mode = 'I'                      /* set default QMF run mode        */   
  procedure = ''                  /* no default procedure            */   
  subset = 'YES'                /* default to CMS subset restrictions*/ 
  ispf = 'YES'                  /* link to ISPF minidisk (optional)  */ 
                                                                        
 /*------------------------------------------------------------------*  
  *               END OF TAILORABLE VARIABLES                        *  
  *------------------------------------------------------------------*/ 

Notes on Figure 36:

  1. The correspondence between the variables on the sample exec and the parameters on the ISPSTART command is as follows:
    1. PGM is used as the PGM parameter on ISPSTART.
    2. MODE is used as the DSQSMODE(M) parameter on ISPSTART.
    3. PROC is used as the DSQSRUN(I) parameter on ISPSTART.
  2. If you specify 'NO' for the ISPF parameter, the CMSSUB parameter is ignored.

    If you specify 'YES' for the ISPF parameter or take the default (YES), either of the following happens:

    When ISPF executes a SELECT PGM, the ISPF product turns on the CMS SUBSET indicator, whereas if ISPF executes a SELECT DCSS, the ISPF product does not turn on the indicator.

  3. Following are examples of invocation statements:
QMF dialog considerations

The following considerations apply to the QMF dialog:

QMF-GDDM considerations

When the QMF DCSS is built, it includes the GDDM interface code. If you run GDDM from a DCSS, you need not access a GDDM disk, or GDDM TXTLIBs, and you may remove the lines in the invocation EXEC that refer to GDDM.

However, if you do not have GDDM in a DCSS, you must access the GDDM TXTLIBSs and perform the necessary FILEDEFs. If you want to change the release of GDDM being used by QMF, you must rebuild the QMF DCSS. See the Program Directory for information on building the QMF DCSS.

QMF-DB2 for VM considerations include the following
QMF-DXT considerations

If you want to start Data Extract (DXT) from QMF, the ISPF setup for DXT should be merged with the ISPF setup of QMF. You can do this in either of the following ways:

QMF provides a sample exec, DSQABX2L, which contains an example of how to use LIBDEF for DXT.

Step 4B--Invoke QMF from an ISPF environment (optional)

ISPF supplies a Master Application Menu as part of its installation process. The QMF dialog can be invoked from the ISPF Master Application Menu, or any other selection menu that you want to use. For an example of how the ISPF Master Application Menu appears after adding QMF, see Figure 37.

The ISPF LIBDEF service provides applications with a dynamic method of defining application data elements files while in an active ISPF session. For more on the ISPF LIBDEF service, see ISPF for VM Dialog Management Services and Examples.

Figure 37. QMF dialog on ISPF master application menu
%------------------------  MASTER APPLICATION MENU  --------------------
%SELECT APPLICATION ===>_OPT     + 
%                                                           +USERID   -
%                                                           +TIME     -
%   1 +SPF        - SPF PROGRAM DEVELOPMENT FACILITY        +TERMINAL -
%   2 +QMF        - QMF QUERY MANAGEMENT FACILITY           +PF KEYS  -
%   3 +QMF2       - QMF with alternate database
%
%
%
%
%
%
%
%
%   P +PARMS      - SPECIFY TERMINAL PARAMETERS AND LIST/LOG DEFAULTS
%   X +EXIT       - TERMINATE USING LIST/LOG DEFAULTS
%
+PRESS%END KEY+TO TERMINATE + 
%
)INIT
)PROC
  &SEL = TRANS( TRUNC (&OPT,'.')
                1,'PANEL(ISP@PRIM) NEWAPPL'
                2,'CMD(DSQ2EINV)'                              (Note 1)
                3,'CMD(DSQ2EINV DB(SQLDBA2))'                  (Note 2)
       /*                             */
            /* ADD OTHER APPLICATIONS HERE */
            /*                             */
                P,'PANEL(ISPOPT)'
                X,'EXIT'
              ' ',' '
                *,'?' )
)END
 

Note: The default database name is SQLDBA. You can modify the name within the QMF invocation exec DSQ2EINV, to suit your installation. You can specify another database name as a parameter.

[ Previous Page | Next Page | Contents | Index ]