Bind concepts in DB2 cobol

Answer Posted / suresh ramaiyan

The first thing is Host languages.
Whatever we are using in cobol (other than cobol langauge
command) that are called HOST language.

DB2 is also one of the host language.
COBOL compiler does not know the host language and does not
compile the same.
we will take cobol-db2 program..
Here, we are introduce PRE-COMPILER....
Pre-compiler will spilt the cobol db2 program into two
module.
1. Cobol program (fully cobol,all the host language
commands will get replaced with "MOVE and CALL" statements.
2. DBRM (DataBast Request Module)- only those commands,
which are code within 'EXEC SQL .. END-EXEC.

Now, we have spited and we have separate for each..(COBOL
and DB2)..
We know about compilation process for COBOL.
Now come to BIND process....
Bind is nothing but, compilation process of DBRM.
The output of this compilation process(BIND) is Package.
If we bind the packages then we will get Plan/Application
plan.
When we do the link-edit the cobol program, a thread will
be created between the load module of cobol and plan.

Is This Answer Correct ?    76 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does db2 plan contain?

573


How to rename a table in DB2 ?

641


What is db2 optimizer?

771


What is the usage of open cursor command?

601


Explain about open switch business continuity software?

563






can all users have the privilage to use the sql statement select * (dml)?

642


For a db2 column that is being defined as decimal (11, 2), discuss the cobol picture clause.

660


What is reorg and runstats in db2?

696


What is dbrm? What it contains? When it will be created?

595


What is rebind in db2?

576


How many types of page locks can be held in db2?

593


What are the benefits of using the db2 database?

662


What os does db2 run on?

574


What are the full forms of spufi and dclgen and why are they used?

657


Why do we use cursor?

599