MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

question about alternateindex

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management
View previous topic :: View next topic  
Author Message
issac1029
Intermediate


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Fri Apr 21, 2006 11:35 pm    Post subject: question about alternateindex Reply with quote

Hi,

When I have duplicate key in alternateinde,that I must access all the relative records except by sequence?I want to get all the alter key ='1'

main alter
1 1
2 1
3 2
4 5
5 1
6 6
7 1

So when I 'read key is 'alter key'=1,I got the first record.If I want to retrivev the 2nd record then I can't use 'read key is' but use 'read next'.
1)If want to get the 4th then I must do 'read next' TWICE?
2)Can I use 'start (main)key is GE '3',then point the 3rd record,then 'read (alter)key is' ,this statement will scan begin at 3?Then I can fet the 5th record which I want.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
issac1029
Intermediate


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Sat Apr 22, 2006 5:47 am    Post subject: Reply with quote

I've solve by test pgm using 'start key' and 'read next' to retrieve dup record ,no question now
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group