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
 

 

Can a single cobol program access both IMS-DB and DB2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
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

bipinpeter

Active User


Joined: 18 Jun 2007
Posts: 213
Location: Cochin/Kerala/India

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming 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 pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm


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