IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to access DB2 tables in CICS COBOL Program?


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ssowmya

New User


Joined: 10 Oct 2006
Posts: 40

PostPosted: Thu Oct 12, 2006 4:56 pm
Reply with quote

Hi

Could any one please tell me how we can access DB2 tables from CICS COBOL program. I am familiar with VSAM. But have not worked with DB2.

Could anyone please help....

Thanks in advance

Sowmya
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Fri Oct 13, 2006 1:04 am
Reply with quote

1. Make sure the tables were CREATEed and populated.
2. Ask you CICS system programers to define and install DB2TRAN, DB2ENTRY & DB2CONN in CICS (refer to the fine manual for more details).
3. Code SQL statements in your COBOL program using the EXEC SQL interface.
4. Before compiling your program, invoke DB2 pre-processor. Don't forget to BIND after successfull compilation.

That's all.

O.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top