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

Partial Key in IMS


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

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Fri Dec 19, 2008 3:54 am
Reply with quote

Hi,

The key to a segment which partially populated. Like, Suppose, A,B,C & D form the key of the segment. Suppose the value of A,B & D are X,Y and Z respectively ( C is not populated ).

Is there any way with which I can diretly read the data where A=X, B=Y & D=Z ?
I know that I can read the data sequentially ( using GN call ) and keep on checking for these values, but the question's is there a way that I can directly go to the point where the three feilds are equal the data which I need ?
Please advise.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Fri Dec 19, 2008 7:01 pm
Reply with quote

Remember that IMS reads left to right. You can load keys A and B with your known values and C and D with low values. You can then issue your GN with a >. You can also do a boolean SSA with a > in the first set - load keys C and D with high values and do a <.
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 Find the occurrence of Key Field (Par... DFSORT/ICETOOL 6
No new posts EIBRESP=16 and EIBRESP2=25 while doi... CICS 2
No new posts Partial color change of a field in CI... CICS 5
No new posts Read VSAM file based on a partial key JCL & VSAM 6
No new posts Partial Distinct and converting rows ... DB2 10
Search our Forums:

Back to Top