Question

  Asked: Jan 2 2008   3:06 PM GMT
  Asked by: 123456


COBOL data appearing out of order in database


COBOL, Database

Hi....Would you know what could be the cause of data appearing in an IMS database out of order? Access type is HIDAM, rules=(,H). The segment that is out of sort order is a child, there are 4 occurrences, and it should be sorted by effective date. Here is an example of the database in data vantage. The key field is pm-acct-eff-date, so the data should be inserted by that date:

CUSTROOT (01,001) CUSTNO(00,12345690)
CUST (02,003) **NOKEY**
PM-ACCT-EFF-DATE 06047+
PM-ACCT-NO-5 21859
PM-SUB-ACCT 999

CUSTROOT (01,001) CUSTNO(00,12345690)
CUST (02,003) **NOKEY**
PM-ACCT-EFF-DATE 05017+
PM-ACCT-NO-5 62092
PM-SUB-ACCT 000

CUSTROOT (01,001) CUSTNO(00,12345690)
CUST (02,003) **NOKEY**
PM-ACCT-EFF-DATE 01017+
PM-ACCT-NO-5 61570
PM-SUB-ACCT 000

CUSTROOT (01,001) CUSTNO(00,12345690)
CUST (02,003) **NOKEY**
PM-ACCT-EFF-DATE 06017+
PM-ACCT-NO-5 21859
PM-SUB-ACCT 000

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


Start this Answer and Earn your Knowledge Points!

By clicking "Create Answer", you can write the answer to this question that can be improved upon by your peers using the Answer Wiki.

Browse more Questions and Answers on DataCenter and Database.

Looking for relevant DataCenter Whitepapers? Visit the SearchDataCenter.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register