#**********************************************************************#
#*                                                                    *#
#* Copyright (c) 2001 by Sun Microsystems, Inc.                       *#
#* All rights reserved.                                               *#
#*                                                                    *#
#**********************************************************************#



#
# The following is a test to verify that an installed batch node can 
# execute a COBOL application program which accesses the DB2/6000 RDBMS.
# In order to execute the COBOL application, this test will update the 
# batch node configuration.
# Upon succesfull or unsuccesfull termination, the test will restore the 
# original batch node configuration.
#

Requirements:
-------------------------------------------------------------------------
In order to run this test you must:

1. be the owner of the installed batch node

2. be a user with privileges to create and drop databases



Procedure:
-------------------------------------------------------------------------

1. Verify that the batch node and the DB2/6000 RDBMS are active.

2. Set the following environment variables

     DB2DBDFT            DB2 default database
     DB2INSTANCE         Instance Name
     INSTHOME            Instance Home directory
     COBDIR              MF Cobol home directory

     For example:

       DB2INSTANCE=dbtwo;export DB2INSTANCE
       DB2DBDFT=unikix;export DB2DBDFT
       INSTHOME=/usr/local/pkgs/db2;export INSTHOME
       COBDIR=/usr/local/pkgs/cobol;export COBDIR

3. Execute the Runtest script passing as an argument the directory where
   the batch node is installed.

   For example type:

       $ Runtest /unikixrel/TEST/BATCH1



Files:
-----------------------------------------------------------------------
Runtest                                : Test script
jmvs/jobdb2                            : MVS/JCL job
ACCTBTCH.bth                           : COBOL program
ACCTREC ACIXREC                        : Copy files
createdemo.sql  dropdemo.sql           : DDL's
actrec.ctl acctocrs.ctl                : Data
actrec.dat acctocrs.dat                : Data
Makefile                               : input make file
ebmsetup.in                            : input batch subsystem setup file



Temporary files and directories:
------------------------------------------------------------------------
sysoutdir                              : batch $SYSOUT directory
formdir                                : batch $FORMS directory
ebmsetup                               : batch subsystem setup file
File_Map                               : batch File_Map file
$ROOTPSG/.install.db2                  : saved batch .install file
ish/jobdb2                             : batch job script
ACCTBTCH.int                           : COBOL Micro Focus .int program
InstalledRTSFS                         : batch COBOL Runtime System directory


