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
 
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: 2442
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 User access certification In Mainfram... Virendra Shambharkar All Other Mainframe Topics 4 Tue Oct 03, 2017 12:32 pm
No new posts Moving UDB database to Db2 on z/OS Keith Hooley DB2 4 Wed Sep 27, 2017 12:38 am
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts PLI - printing from multiple programs Pedro PL/I & Assembler 8 Fri Sep 08, 2017 6:36 am

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