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: 210
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
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm


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