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

Doubt regarding multiple Database access through CBLTDLI


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pankaj1002

New User


Joined: 30 Jul 2012
Posts: 18
Location: India

PostPosted: Wed Oct 17, 2012 12:19 pm
Reply with quote

Hi Friends,

I am a new learner of IMS DB. At one point I got stuck in understanding that, for e.g., lets say if my cobol program needs to access multiple databases, then how does the CBLTDLI call understands that which database it needs to access to find the segment information.

I know, For multiple database we have to provide as many PCB masks at Linkage section and Procedure division.

My confusion is because we dont provide any DBD information when we call CBLTDLI. icon_confused.gif

CALL 'CBLTDLI' USING WS-GU-FUNC (Function)
CDB-PCB (system information after each call)
CDB-IO (IO-Area)
WS-RAP01-SSA
WS-RACTL-SSA
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Oct 17, 2012 2:50 pm
Reply with quote

Maybe this www.sysed.com/DnLoads/QualityContents/IMSControlBlock/05_Chapter02_IPB1-us.pdf will clarify a bit. IMS is using lots of control blocks like ACB, DBD, PSB, PCB, FORMATS etc. look them up in the documentation.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Wed Oct 17, 2012 6:39 pm
Reply with quote

The PSB entries line up with the Entry statement (DLITCBL) items.

That second parm in the IMS call is one of those items in the Entry statement. When you specify one of those PCBs, you are pointing to a database, simply by picking the correct PCB.

If you use the AIBTDLI call instead of CBLTDLI, you can actually specify the name of PCB. However, you have to define the names in the PSB when you generate it.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Oct 18, 2012 3:06 pm
Reply with quote

pankaj1002 wrote:
My confusion is because we dont provide any DBD information when we call CBLTDLI. icon_confused.gif
At program level PSB/PCB are the "interfaces". DBD is 'Physical' Database Definition; in one sense, program does not need to know about it -- why do you think it should be provided?

Possibly, a vague correlation can be -- in a simple Batch-COBOL program, you don't provide the physical attributes of a DSN and the DD Name for the file is enough to get your program working. Co-relate it with IMS terminologies and it might just help... .

Hope this helps.
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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts How to access web services/website? Mainframe Interview Questions 4
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Multiple table unload using INZUTILB DB2 2
Search our Forums:

Back to Top