A. Building CICS/6000 Programs on UNIX : How You Build CICS/6000 Applications : COBOL Applications
 
Share this page                  
COBOL Applications
The following example illustrates the use of a makefile to add an embedded COBOL application to the CICS/6000 environment. In this example, the application filename is “app2.scb”. To run the makefile, type the following commands:
make app2
make install
Example: makefile source
#-------------------------------------------------------------
# DEFINE VARIABLES
#-------------------------------------------------------------
II_SYSTEM=/install/65
CICSREGION=DEMO1
INGHDRS=-I$(II_SYSTEM)/ingres/files
INGLIBS=-L$(II_SYSTEM)/ingres/lib -lcompat.1 -lframe.1 -linterp.1 -lq.1
#-------------------------------------------------------------
# The COBOL PROGRAM
#-------------------------------------------------------------
app2: app2.ccp
    cicstcl -e -d app2.ccp
    rm -f app2.cbl
app2.ccp app2.scb
    esqlcbl app2.scb
    mv app2.cbl app2.ccp
#-------------------------------------------------------------
# ADD CICS REGION DEFINITIONS
#-------------------------------------------------------------
install:
    cicsadd -c td -r $(CICSREGION) -P APP2 ProgName=APP2 \
        RSLCheck=none
    cicsadd -c pd -r $(CICSREGION) -P APP2 PathName=$(PWD)/app2