Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need help on COBOL CICS program.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
dates

New User


Joined: 11 Mar 2008
Posts: 9
Location: LA,USA

PostPosted: Fri Oct 15, 2010 7:20 am    Post subject: Need help on COBOL CICS program.
Reply with quote

I have a common piece of code used in 4 programs which includes an EXEC CICS READ of a file and error handling of the same.

So i have copied this code in a member and compiled it as COPYCOB2 and used the COPYBOOK in Procedure division of 4 programs.

But when i Compile the COBOL CICS programs as COB2C, the code from Copy book is merged into program, BUT the CICS statements in the COPYBOOK are not recognized, it is throwing a COMPILER Error that EXEC CICS is not identified by COMPILER.


How to resolve this ?
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8121
Location: East Dubuque, Illinois, USA

PostPosted: Fri Oct 15, 2010 7:37 am    Post subject:
Reply with quote

Does the compiler support the CICS option?
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Fri Oct 15, 2010 8:09 am    Post subject: Reply to: Need help on COBOL CICS program.
Reply with quote

If your compiler does NOT support the automatic translation of CICS API's, then you'll have to pre-translate the PROCEDURE DIVISION copybooks and store each translated copybook into a unique TRANSLATED COPYBOOK PDS.

Then, as part of the COMPILE step, add the above TRANSLATED COPYBOOK PDS to the SYSLIB concatenation and you're done.

No muss, no fuss.... icon_wink.gif

Bill
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Fri Oct 15, 2010 8:09 am    Post subject:
Reply with quote

what version cobol compiler are you using?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us