Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Including CICS Exec Statements in Copybooks

Status
Not open for further replies.

mdennis

Programmer
Oct 4, 2001
1
US
Hello all!

I am wondering if there is a way to include CICS commands (exec-cics) in copybooks. I have common code that is used in many programs that I would like to put into a copybook. Is it possible? Are there any other alternatives? Any help would be greatly appreciated!

Mike
 
IBM's Enterprise COBOL for OS/390 apparently does this. The blurb states:
EXEC CICS and EXEC DLI statements can be included in copybooks without the need to translate them separately before compilation.

See for further info.

But if you haven't got it (and most places haven't) the only other possibility that I can think of is to EXEC SQL INCLUDE the copybook and run a DB2 pre-compiler step before the CICs translator. Not ideal, but I think it might work as even if the program was not DB2, you'd only get a warning message.
 
Have you considered moving the code into a dynamically called module. Then if there are ever any changes need to the code you can simply change the module in isolation rather than having to recompile and link a whole host of programs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top