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

IMS DB - Multiple key value


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

New User


Joined: 31 May 2007
Posts: 4
Location: Chennai

PostPosted: Mon Apr 21, 2008 7:29 pm
Reply with quote

In my DB a segment has a key value which is either xxxx or yyyy.
Is there any way to fetch the segment thru single call by passing both the key values to find atleast the one is present in the segment.

Sweet,
Santhosh
Back to top
View user's profile Send private message
Sinkaravelan S

New User


Joined: 21 Apr 2008
Posts: 27
Location: coimbatore-TN india

PostPosted: Tue Apr 22, 2008 10:41 am
Reply with quote

Santhosh,


We cannot give two key fields into one segment.Search field may be contain one more value but key field should be one.

I think you can use alternate index.
Back to top
View user's profile Send private message
kalukakkad

New User


Joined: 10 Mar 2005
Posts: 81

PostPosted: Tue Apr 22, 2008 1:18 pm
Reply with quote

You can define the SSA with logical OR operator --> | (pipe symbol) or + symbol between 2 key values

SSA=SEGMNAME(KEYFLD=XXXX|KEYFLD=YYYY)

or

SSA=SEGMNAME(KEYFLD=XXXX+KEYFLD=YYYY)
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top