IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Query on DB2 BIND


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
balubhat

New User


Joined: 04 Oct 2005
Posts: 19
Location: Singapore

PostPosted: Tue Sep 15, 2009 3:29 pm
Reply with quote

Hii Friends

I need some information on DB2 BIND.

What is the output of DB2 BIND? For COBOL program, the output of compilation is the Load module which are stored in the PDS. Similarly, when we BIND the Plan it creates executable code for the SQL thru the DBRM and using the DB2 optimizer to create the optimal access path to execute that query. So where these executable instructions are stored?

Can we see these executable instructions just like Cobol load module?

Please let me know if anybody know the answer.

Thanks
Bala
Back to top
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 193
Location: chennai

PostPosted: Tue Sep 15, 2009 4:14 pm
Reply with quote

Hi balubhat

The output of BIND , the Plan, is stored in the DB2 Directory.
DSNDB01 is the default DB2 Directory name and that can not queried or opened like any other database or datasets.

Hope this will help you

Regards
Raghu
Back to top
View user's profile Send private message
Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 295
Location: Singapore

PostPosted: Tue Sep 15, 2009 4:14 pm
Reply with quote

Bala,
You can refer to SYSIBM.SYSPACKSTMT table.
Back to top
View user's profile Send private message
Keanehelp

New User


Joined: 27 May 2008
Posts: 71
Location: USA, CA.

PostPosted: Tue Sep 15, 2009 4:16 pm
Reply with quote

HI Bala,

Probably you can also try SYSIBM.SYSPLANS table.

Thanks
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Tue Sep 15, 2009 9:41 pm
Reply with quote

Quote:
So where these executable instructions are stored?

Can we see these executable instructions just like Cobol load module?
The executable instructions are in the load module. Look at your source listing output of the compiler and you'll see that the SQL has been commented and replaced by COBOL verbs and CALL statements which are in your load module.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts RC query -Time column CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts Issue with EXEC CICS QUERY SECURITY c... CICS 6
Search our Forums:

Back to Top