Unable to compile a COBOL-DB2 program in OMVS region

Ask question on - DataBase Concepts, IBM Mainframe DB2, DB2/UDB, DB2 Tools, SQL , DB2 programming with languages like COBOL, PL1.

Moderators: Kalicharan, Moderator Group

Locked
Mikku
Member
Posts: 3
Joined: Mon Mar 03, 2014 2:14 pm

Unable to compile a COBOL-DB2 program in OMVS region

Post by Mikku » Mon Mar 03, 2014 2:31 pm

Hello,

I am trying to execute a cobol-db2 program using cob2 compiler in OMVS region.
The syntax I gave is "cob2 programname.cbl" but the following error message is showing " An exec sql statement was found but the sql compiler option was not in effect. the statement was discarded".

The same program is working fine in MVS region.

Please help me in solving this problem.[/img]
Cheers,

Mikuz

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Mon Mar 03, 2014 10:48 pm

Do not post the same topic in multiple places.

This duplicate is locked.

Locked

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