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
What is table space in db2?
Mention data types used in db2 ?
Is it possible using max on a char column?
How do you pull up a query which was previously saved in qmf?
What is the maximum size of varchar data type in db2?
What is the use of db2?
Explain correlated sub-queries.
What is the difference between spufi and qmf?
Explain the function done by data manager?
When the like statement is used?
List down the data types in the db2 database.
What are the 2 sqlcodes that are returned?
How to run db2 command in windows?
What is the difference between cursor and select statement?
How do we specify index to include or not during bind process.