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

How many databases can be created inside an instance in db2 ?

806


What is drop table?

763


Mention data types used in db2 ?

879


Where can you declare a cursor in a cobol-db2 program?

772


How to find the maximum value in a column in the db2 database?

814


Explain about mirror activator disk mirroring?

753


How to execute stored procedure in db2 command editor?

734


What are types of indexes?

765


What is host variable?

799


Why do chiropractors use drop table?

869


What db2 400?

893


What is database manager in db2?

747


What is bind package and plan in db2?

799


What is dclgen in db2?

879


What is a db2 table?

759