DB2 graphic QMF Version 8

Assembling and running your programs under CMS in VM

The following sample program assembles and runs your callable interface application using the Assembler H compiler. QMF does not ship the REXX EXEC in this example, but you can copy it from here, altering it to suit your installation.

Figure 32. REXX program to assemble and run your program
/******************************************************************/
/* Assemble your program and execute it.                          */
/******************************************************************/
TRACE off
ADDRESS CMS
 
/******************************************************************/
/* Assemble the program                                           */
/******************************************************************/
"ERASE TEMPP MACLIB A"
"MACLIB GEN TEMPP DSQCOMMA"
Maclist = "TEMPP DMSSP CMSLIB OSMACRO"
"GLOBAL MACLIB" Maclist
"HASM yourname"
 
/******************************************************************/
/* Access DB2 Server for VM and initialize database               */
/******************************************************************/
"EXEC PRODUCT SQLDS"
"EXEC SQLINIT DBNAME(SQLDBA)"
 
/******************************************************************/
/* Access GDDM product disk                                       */
/******************************************************************/
"EXEC PRODUCT GDDM"
 
/******************************************************************/
/* Issue Filedefs for QMF product                                 */
/******************************************************************/
/* DEBUG = DDNAME FOR QMF DIAGNOSTICS OUTPUT                      */
"FILEDEF DSQDEBUG PRINTER ( LRECL 80  BLKSIZE 80  RECFM FBA PERM"
/* PRINT = DDNAME FOR QMF PRINTED OUTPUT                          */
"FILEDEF DSQPRINT PRINTER ( LRECL 133 BLKSIZE 133 RECFM FBA PERM"
/* EDIT  = DDNAME FOR QMF EDIT TRANSFER FILE                      */
"FILEDEF DSQEDIT DISK QMFEDIT FILE A (PERM"
/* DSQSIDE = DDNAME FOR QMF SPILL FILE                            */
"FILEDEF DSQSPILL DISK DSQSIDE DATA A1 (PERM"
/* DSQPNLE = DDNAME FOR PANEL FILE                                */
"FILEDEF DSQPNLE DISK DSQPNLE FILE * (PERM"
"FILEDEF ISPLLIB CLEAR"
"FILEDEF ISPLLIB DISK DSQLDLIB LOADLIB *"
/******************************************************************/
/* Provide access to QMF and GDDM program libraries               */
/******************************************************************/
"GLOBAL LOADLIB DSQLDLIB "
"GLOBAL TXTLIB ADMRLIB ADMPLIB ADMGLIB"
 
Say "Starting to execute 'ASSEMBLER' program"
ADDRESS CMS "RUN yourname"
 
Exit 0


Go to the previous page Go to the next page

Downloads | Library | Support | Support Policy | Terms of use | Feedback
Copyright IBM Corporation 1982,2004 Copyright IBM Corporation 1982, 2004
timestamp Last updated: March, 2004