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 

VSAM Alternate Index

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


Joined: 30 Nov 2004
Posts: 3
Topics: 1
Location: Orlando FL

PostPosted: Tue Nov 30, 2004 2:29 pm    Post subject: VSAM Alternate Index Reply with quote

Is it possible to create an alternate index on a VSAM file with a key that is made up of non-contiguous fields?
_________________
Elenita
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12384
Topics: 75
Location: San Jose

PostPosted: Tue Nov 30, 2004 6:00 pm    Post subject: Reply with quote

Elenita,

You CANNOT create an alternate index with non-contigous fields. one alternative is to you can code a program which will take the keys and put them together in one string and put that string somewhere(usually at the end) on the record.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Elenita
Beginner


Joined: 30 Nov 2004
Posts: 3
Topics: 1
Location: Orlando FL

PostPosted: Wed Dec 01, 2004 8:16 am    Post subject: VSAM Alternate Index Reply with quote

Thanks -- I was afraid of that, but may be able to use your suggestion.

Elenita
_________________
Elenita
Back to top
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Thu Dec 02, 2004 2:05 am    Post subject: Reply with quote

Are you sure you need to do this? The overhead might be high. What are your requirements?
Back to top
View user's profile Send private message Visit poster's website
Elenita
Beginner


Joined: 30 Nov 2004
Posts: 3
Topics: 1
Location: Orlando FL

PostPosted: Thu Dec 02, 2004 8:06 am    Post subject: Reply with quote

Trying to access a VSAM file based on two non-contiguous fields.
_________________
Elenita
Back to top
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Fri Dec 03, 2004 1:54 am    Post subject: Reply with quote

Why? How often? Random? Sequential? Terse answers, terse questions. Your answer did not supply any new information of value.
Back to top
View user's profile Send private message Visit poster's website
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