include and copy

About CICS and BMS - In this Mainframe Forum - You can post your queries on CICS

Moderators: DikDude, Natarajan, Moderator Group

Locked
appubsasanur@gmail.com
Member
Posts: 1
Joined: Mon Aug 08, 2011 11:46 am

include and copy

Post by appubsasanur@gmail.com » Fri Dec 02, 2011 2:08 pm

can we use include in cics for copy books :)

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

Post by Anuj Dhawan » Fri Dec 02, 2011 3:23 pm

Easy answer is - try that at your shop.

If you meant "++INCLUDE" then it's a Panvelet key-word and you can use it only if Panvelet is in use at your shop.

If you meant including the DCLGEN of a DB2 table in the COBOL program - INCLUDE is the way to do it.
Regards,
Anuj

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

Post by dbzTHEdinosauer » Fri Dec 02, 2011 6:49 pm

as Anuj said:
++INCLUDE" then it's a Panvelet

INCLUDE is a DB2 source code processor (pre-compiler) directive.

INCLUDE means nothing to a CICS pre-compiler,
and i believe that INCLUDE will be rejected by the CICS pre-compiler.
If not, it will be ignored, since the DB2 pre-compiler comments-out all the SQL directives in the source program.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

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