Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Can a single cobol program access both IMS-DB and DB2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
Giri12
Currently Banned

New User


Joined: 09 Apr 2009
Posts: 1
Location: Bangalore

PostPosted: Wed Jul 01, 2009 11:55 am    Post subject: Can a single cobol program access both IMS-DB and DB2
Reply with quote

Can a single cobol prgrm access both IMS-DB and DB2 database? If yes tell me how?

Warning: Do not use the Forum Name as your Topic title, Title edited.
Back to top
View user's profile Send private message
References
bipinpeter

Active User


Joined: 18 Jun 2007
Posts: 214
Location: Pune

PostPosted: Wed Jul 01, 2009 11:57 am    Post subject:
Reply with quote

yes we can..
For accessing DB2 from IMS programs we need to have a plan created with the name of the PSB and the program should be bound to a collection which this plan can access
Back to top
View user's profile Send private message
sudhakarreddy.ibm
Warnings : 1

New User


Joined: 20 Apr 2009
Posts: 15
Location: chennai

PostPosted: Wed Jul 01, 2009 1:28 pm    Post subject:
Reply with quote

Hi,

You can code DB2 and IMS DB in one program.
But you need to code PCB under LINKAGE SECTION which are exit in PSB.You can access the IMS data through the PCB .You can do operation like READ,INSERT,REWRITE AND DELETE etc.....by using FUNCTION CODES.

sudhakar
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1