Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Partial Key in IMS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
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    Post subject: Partial Key in IMS
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts Read VSAM file based on a partial key seahawk789 JCL & VSAM 6 Tue Aug 19, 2014 10:26 am
No new posts Partial Distinct and converting rows ... Rajesh Haridoss DB2 10 Sat Jul 26, 2014 5:22 pm
No new posts Partial dataset name Processing in JCL l_rajendrakumar JCL & VSAM 2 Mon Jun 23, 2014 2:52 pm
No new posts TSO Find is not working on partial st... karthik_sripal TSO/ISPF 8 Tue May 14, 2013 1:51 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us