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

Clarification required about Secondary indexing PCB's


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

New User


Joined: 29 Aug 2006
Posts: 21
Location: India

PostPosted: Mon Oct 09, 2006 5:50 pm
Reply with quote

Friends,

I need some clarification about secondary indexing DB PCB.

What I have an idea is, For secondary indexing DB, there won't be any explicit PCB statement in our program's PSB.

Instead PROCSEQ parameter names the secondary indexing DB and NAME parameter tells the main Db(primary DB).

But I found explicit PCB statement for Sec Ind DB in my production followed by another PCB statement contains NAME as primary DB and PROCSEQ = SI DB

Could some one please clarify this concept for me?

I have made some change to my PSB to include 2 secondary indexing PCB's . I am getting some AIB error.

Help required.

Thanks in advance,
Back to top
View user's profile Send private message
PascalQ

New User


Joined: 12 May 2006
Posts: 20

PostPosted: Tue Oct 10, 2006 10:11 pm
Reply with quote

Some applications sometimes want to just read the secondary index (without the DB the index belongs to). In this case it is usually faster if you have a PCB referring directly to the secondary index. This is why you will sometimes find a PCB representing a secondary index.

However, when an application needs to access the data from the main database, but wants to use the secondary index for searching purpose, you code the PROCSEQ=secindex.


I guess that's clear, but just to make sure: Whenever you update your main database, the indexes will be updates automatically. There's no need to specify the secondary indexes in the PCB in this case.
I think IMS would allow you to perform updates on a secondary index. I believe this is usually a bad idea.
Back to top
View user's profile Send private message
rocksolid

New User


Joined: 29 Aug 2006
Posts: 21
Location: India

PostPosted: Wed Oct 11, 2006 3:10 pm
Reply with quote

Thanks PascalQ,

I got the concept now....

But I am still having PCB issues...

I will let u all know in next post

Thank you,
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 Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts DL/I status code AK for GU call using... IMS DB/DC 1
No new posts array indexing PL/I & Assembler 4
No new posts Secondary index error while loading d... IMS DB/DC 2
No new posts Required Date Format in Include Sort ... DFSORT/ICETOOL 6
Search our Forums:

Back to Top