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
 

 

Doubt regarding multiple Database access through CBLTDLI

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
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    Post subject: Doubt regarding multiple Database access through CBLTDLI
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: 2435
Location: Netherlands, Amstelveen

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

Maybe this http://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    Post subject:
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

Senior Member


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

PostPosted: Thu Oct 18, 2012 3:06 pm    Post subject: Re: Doubt regarding multiple Database access through CBLTDLI
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    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm


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