Home > Ask the Data Center Experts > Questions & Answers > Can batch-compiled COBOL programs run in CICS?
Ask The Data Center Expert: Questions & Answers
EMAIL THIS

Can batch-compiled COBOL programs run in CICS?

Robert Crawford EXPERT RESPONSE FROM: Robert Crawford

Pose a Question
Other Data Center Categories
Meet all Data Center Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 10 October 2003
I am trying to write a C program that calls a COBOL routine (either linked statically or using fetch() or EXEC CICS LOAD). I can get it working fine in z/OS batch but when I try to do it in CICS I get an 0C4 every time with whatever compile and link options I choose.

We are on z/OS release 1.2, CICS v6.2, LE370 for the C compiler and COBOL II for COBOL. Any ideas?


>
EXPERT RESPONSE
My understanding is that a batch-compiled COBOL program cannot be run within the CICS environment (however one invokes it). You will have to recompile the secondary program as a CICS program and then either XC LINK to it or use the Cobol dynamic linkages as you observe.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
CICS Newsletter
Using CICS event monitoring points (EMPs) for tuning and debugging
Implementing CICS managed data tables
Taking advantage of the CICS workload dispatch ratio
CICS 3270 bridge tutorial, part 3: How to start and end a conversation
CICS 3270 bridge tutorial, part 2: Using DFHL3270
Mainframe applications never die: Using the 3270 bridge
Hash table how-tos for mainframe programmers
Can a program use IXLLIST macros in CICS?
CICS socket interface
How to use CPSM's PNEWCOPY command

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsITKnowledge ExchangeTipsBlogsMultimediaWhite PapersEvents
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2005 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts