Pure COBOL Module Compilation

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
perumalnk
Member
Posts: 24
Joined: Thu Feb 28, 2008 3:30 am
Location: Denver,USA

Pure COBOL Module Compilation

Post by perumalnk » Wed Feb 11, 2009 7:15 pm

Hi,

When I compile a pure COBOL module which does not do any transaction with Database, How DB2 pre-compiler and SQL Compiler respond to that? And does Package make any significance while the execution of that COBOL module. I do see the empty BATDBRM after the compilation.

Thanks,
Perumal.N.K.

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Wed Feb 11, 2009 7:27 pm

what is a pure COBOL module?

sql compiler? what is that?

if you have no imbedded sql in your source, you do not need to pre-compile for db2, nor do you have a package, because the dbrm is empty, you can not bind.

what is your question?

maybe you are using the incorrect JCL for the compile/link of your module.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Wed Feb 11, 2009 7:28 pm

Hi,

Are you using change-man for compilation?
Regards,
Anuj

perumalnk
Member
Posts: 24
Joined: Thu Feb 28, 2008 3:30 am
Location: Denver,USA

Post by perumalnk » Thu Feb 12, 2009 1:32 pm

Hi,
The COBOL I meant has no SQLs in it by any way. I was just thinking irrationally :wink: how a DB2 pre-compiler will respond when we ask it to compile such a module.

Thanks,
Perumal.N.K.

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Mon Feb 16, 2009 10:54 am

Then suggestions from Dick should suffice.. :)
Regards,
Anuj

perumalnk
Member
Posts: 24
Joined: Thu Feb 28, 2008 3:30 am
Location: Denver,USA

Post by perumalnk » Tue Feb 17, 2009 4:52 pm

Thanks Dick / Anuj !

Regards,
Perumal.N.K.

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Tue Feb 24, 2009 5:39 pm

You are welcome, hope we had been helpful... :)
Regards,
Anuj

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others