Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Bind concepts in DB2 cobol

Answers were Sorted based on User's Feedback



Bind concepts in DB2 cobol..

Answer / 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

Bind concepts in DB2 cobol..

Answer / suresh ramaiyan

As Sharath requested...

As we all know, all our programming(high level language) needs to be converted(compiled) into system-understandable(low level language) to be executed.
So, SQL statements in the COBOL programs needs to be compiled, such process is called BIND. DB2 Bind compiles all your sql statements(dbrm) into an executable format.
BIND also verifies all the information in the program with DB2 databases..
Here are the list of items happening through out BIND process (as of I know :) )
1. Syntax check of SQL query
2. Availability of Tables & columns in the database
3. It uses DB2 Optimizer to create the better access path. A clear way to read/update/delete table. like.. what are the columns are reading, which indexes needs to be used, the table space..etc.

So after BIND process finished, the Package/Plan contains exactly how to do, what we meant to do in system understandable language.

Hope it helps.. My apologies, if I confused or missed something.

Is This Answer Correct ?    10 Yes 0 No

Bind concepts in DB2 cobol..

Answer / guest

awesome reply by suresh..to the point..

Is This Answer Correct ?    12 Yes 4 No

Bind concepts in DB2 cobol..

Answer / lavenderguy

Brillian answer suresh..it helped me lot....

Is This Answer Correct ?    7 Yes 1 No

Bind concepts in DB2 cobol..

Answer / sheetal

simple and best answer.very helpful,thanks a ton.

Is This Answer Correct ?    5 Yes 0 No

Bind concepts in DB2 cobol..

Answer / raghunadhareddy

Excellent explanation Suresh

Is This Answer Correct ?    4 Yes 0 No

Bind concepts in DB2 cobol..

Answer / sonu

Nice answer!!!!!!!!!!

Is This Answer Correct ?    5 Yes 2 No

Bind concepts in DB2 cobol..

Answer / vaneesh khurana

Awesome explanation in Easy language...

Is This Answer Correct ?    5 Yes 2 No

Bind concepts in DB2 cobol..

Answer / sheethal

thanks a lot....

Is This Answer Correct ?    2 Yes 0 No

Bind concepts in DB2 cobol..

Answer / sharath

Nice Explanation from suresh, Appreciate if he gives more information about Bind function.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB2 Interview Questions

How do you do the EXPLAIN of a dynamic SQL statement?

2 Answers  


How does the processing of a correlated subquery differ from a non correlated subquery?

1 Answers  


When do you specify the isolation level? How?

1 Answers  


if any of the column names is provided wrong, where do you get the error(during precompilation or during Bind)

3 Answers  


Is Cursor exicutable ?

3 Answers   TetraSoft,


Is db2 free?

0 Answers  


What is temporal table in db2?

0 Answers  


what is plan? is plan executable or package?

4 Answers  


What is access path in db2?

0 Answers  


What is db2 isolation?

2 Answers  


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

0 Answers   MCN Solutions,


what is diffrence b/w file-aid tool and file-aid utility???

1 Answers  


Categories