Bind concepts in DB2 cobol
Answer Posted / 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 |
Post New Answer View All Answers
How to find the number of rows in a db2 table?
How to fetch the last row from the table in SQL (db2)?
What's The Error Code For Unique Index Voilation?
How can you count the number of rows from a table tab?
What is view db2?
How can you validate Sql errors during cursor operation in db2 pgms and where do you code?
Is db2 a database?
What is ibm db2 client?
What is dbrm library?
What is the cobol picture clause of the db2 data types date, time, timestamp?
Mention the downsides of page level lock.
What is scrollable cursor in db2?
What is a system catalog table in db2?
DB2 can implement a join in three ways using a merge join, a nested join or a hybrid join. Explain the differences?
How do I start db2 in windows?