Why precompile is required

IBM's flagship relational database management system

Why precompile is required

Postby shruti » Sun Apr 11, 2010 3:21 pm

Why cant we directly compile the COBOL DB2 program?Why precompile is required?
Posts: 4
Joined: Sun Apr 11, 2010 3:16 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Why precompile is required


Re: Why precompile is required

Postby dick scherrer » Sun Apr 11, 2010 7:37 pm

Hello and welcome to the forum,

If your system used the db2 co-processor, a db2 pre-compile would not be necessary.

Suggest you talk with your dba and/or compiler support people as to why you need to pre-compile.

Even though the co-processor is available many/most systems still pre-compile. . .
Hope this helps,
User avatar
dick scherrer
Global moderator
Posts: 6308
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 90 times

Re: Why precompile is required

Postby Robert Sample » Sun Apr 11, 2010 7:38 pm

Because the DB2 statements are not valid COBOL statements (check the COBOL Language Reference manual) and must be converted into valid COBOL statements before the compiler can compile the program.
Robert Sample
Global moderator
Posts: 3100
Joined: Sat Dec 19, 2009 8:32 pm
Location: Bellevue, Iowa
Has thanked: 1 time
Been thanked: 177 times

Return to DB2


  • Related topics
    Last post