INTERVIEW QUESTIONS
MAINFRAME
DETAILS
Question: what is the diff between dbrm.lib and loadlib what r they used for
Answer: Normally when a COBOL-DB2 code is compiled, during pre-compilation process, all the SQL codes embedded in the COBOL code will be extracted and moved into a DBRM. The DBRM will be situated in a system library called DBRM.lib. Once the DBRM is created then binding of the DRBM happens where a package or a plan is created for a particular DBRM or set of DBRM's. After the binding is done. The COBOL code is compiled and the system generated a Object module. After the compilation, link editing takes place where all the sub modules called and copybooks used by this COBOL code will be linked to this Object module, with this a Load module is generated and this is situated in a System library like LOADLIB.LIB.
|
Question:
what is the diff between dbrm.lib and loadlib what r they used for
Answer:
Normally when a COBOL-DB2 code is compiled, during pre-compilation process, all the SQL codes embedded in the COBOL code will be extracted and moved into a DBRM. The DBRM will be situated in a system library called DBRM.lib. Once the DBRM is created then binding of the DRBM happens where a package or a plan is created for a particular DBRM or set of DBRM's. After the binding is done. The COBOL code is compiled and the system generated a Object module. After the compilation, link editing takes place where all the sub modules called and copybooks used by this COBOL code will be linked to this Object module, with this a Load module is generated and this is situated in a System library like LOADLIB.LIB. Source: CoolInterview.com
Answered by: Avinash | Date: 5/25/2009
| Contact Avinash
DBRM lib contains the executable version of the cobol equivalent sql statements and Loadlib conatins the executable version of the cobol source code whenever we exectue the program/job then it will invoke the load lib and which inturn invoke the DBRM lib to execute the sql statements in the source code. Source: CoolInterview.com
Answered by: ssh | Date: 6/3/2010
| Contact ssh
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|