I am new to IMS...Currently I am writing a new module to access an IMS DB.
We want to fetch a age of an account from one of the subsegments of the DB.We dont have to the account number with us and i want to get all the account in the DB.Is it possible for me to get the age status in subsegment by moving '0' 's to the account DB key using the relational operator '>'.
My key is defined as
I have only control number with me and dont have the account number.But there are multiple account numbers against the same control number.Now what I am trying to do is I want to fetch the age status for each of these account numbers and write it to the file.
I have given a qualified GN call to get the account numer and an unqualified GNP call to the age status.
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
IMS is not a relational database. It is a heirachy. When asking these types of questions, you need to tell us at what segment level you need to retrieve information. Is is the root? Please post the DBD structure. You don't FETCH in IMS. You execute some type of GET CALL depending on what you want. You may use 1 SSA or many, etc, etc.