Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How DB2 binding works in real time

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
bhageeradhi

New User


Joined: 23 Apr 2005
Posts: 2

PostPosted: Tue Dec 19, 2006 1:16 pm    Post subject: How DB2 binding works in real time
Reply with quote

Hi,
Any one of you tell me, how the code is excuted means precompilation, binding, preparation of plan, package etc...in realtime in DB2?
Thanks & regards,
Sunitha.G
Back to top
View user's profile Send private message

vicky10001
Warnings : 1

Active User


Joined: 13 Jul 2005
Posts: 136

PostPosted: Tue Dec 19, 2006 3:32 pm    Post subject:
Reply with quote

DB2- SQL statements will have to be embedded with any of HLL such as COBOL for it to be executed other than by making use of SPUFI, such kind of Tools.
In this case, COBOL-DB2, normal cobol compiler didn't understand SQL statements. So a precompilation has to be done in which SQL statements would be converted to COBOL equivalent MOVE and CALL statements these resides in DBRMLIB, the other output of this step being the normal Cobol statements segregated from SQL statements, so called as Modified Source program. In this step the following activities occur,
1. Source program gets segregated to DBRM and Modified Source program.
2. The precompiler fixes the TIMESTAMP in both DBRM and Modified Source program.
3. Checks for SQL syntax.
Then this DBRM will come in to play only during BIND operation. Meanwhile the Modified Source program undergoes Normal Compilation, link-editing resulting in a load module.
Now during BIND, it does the following,
1. Checks for authorization.
2. Timestamp check.
3. DBRM are bound to packages which is inturn bound to plan ( executable form ).
Now this plan is executed to get the desired outcome.
Back to top
View user's profile Send private message
bhageeradhi

New User


Joined: 23 Apr 2005
Posts: 2

PostPosted: Tue Dec 19, 2006 3:44 pm    Post subject:
Reply with quote

Hi vicky,
Thanks for ur reply....
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 1 Thu Jan 19, 2017 1:31 am
No new posts DD DUMMY & CPU TIME Nileshkul Testing & Performance analysis 16 Mon Dec 19, 2016 11:35 pm
This topic is locked: you cannot edit posts or make replies. Get a job submitted itself every time... arunsoods JCL & VSAM 3 Tue Nov 22, 2016 4:05 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us