Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
This topic is locked: you cannot edit posts or make replies. Limit access to certain RACF group cvnlynn CLIST & REXX 5 Wed Aug 23, 2017 2:28 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us