pls explain the precompilation process of cobol-db2 pgm

Answers were Sorted based on User's Feedback



pls explain the precompilation process of cobol-db2 pgm..

Answer / tej

Precompilation separates the SQL statements and non-SQL
statements of an application program.
From the precompilation step onwards the original source
code will be contained in two separate physical components.
The non-sql part of the program will have all the
sql-statements commented out by the precompiler and and
replaced with cobol call statements.
The colection of SQL that was extracted will be placed in a
DBRM(Database Request Module).Precompiler also places a
consitency token in both of its outputs.

Is This Answer Correct ?    33 Yes 1 No

pls explain the precompilation process of cobol-db2 pgm..

Answer / yuvaevergreen

Precompiling does the following:
>> Replaces the SQL statements in your source programs with
calls to DB2 language interface modules.

>>Creates a database request module (DBRM), which
communicates your SQL requests to DB2 during the bind
process

Is This Answer Correct ?    8 Yes 0 No

pls explain the precompilation process of cobol-db2 pgm..

Answer / siri

COBOL+DB2 COMPILATION PROCESS:-

1)PRE-COMPILATION :-
*PRE-COMPILATION PROCESS UTILITY IS DSNHPC
*IT IS THE PROCESS OF SEPARATING COBOL AND DB2 STATEMENTS
*IT CHECK THE SYNTAX ERRORS OF DB2 STATEMENTS AND ALSO IT PLACES THE ERROR FREE DB2 STATEMENTS IN DBRM
*AND ALSO IT PLACES THE TIME-STAMPS TOKEN IN MODIFIED SOURCECODE AND DBRM

*********MODIFIED SOURCE CODE:-IT PLACES ONLY COBOL CALL STATEMENTS...ALL DB2 STATEMENTS REPLACED BY THE COBOL CALL STATEMENTS*******

********DBRM(DATA BASE REQUEST MOODULE)..ONE DBRM IS CREATED FOR ONE PROGRAM***********

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More DB2 Interview Questions

What is a Foreign Key?

0 Answers   Tavant Technologies, Zensar,


What is dpf in db2?

0 Answers  


What is image copy in db2?

0 Answers  


How can you find out the # of rows updated after an update statement?

0 Answers  


What is ACQUIRE/RELEASE in BIND?

3 Answers   Cognizant,






how to delete perticular row from table for ex. how you will delete 3rd row from table please answer THANKS IN ADVANCE

10 Answers   IBM,


What is the difference between base table and view?

7 Answers  


What are foreign keys in db2?

0 Answers  


What is the difference between db2 and oracle?

0 Answers  


DB2: A calls B once sucessfull and second time when it calls says curson is open why is it so?

1 Answers   IBM,


How to find primary key of a table in db2?

0 Answers  


What is buffrpool? Where we use it ?

2 Answers   Tesco,


Categories