I got DB-KEY from source for a record called TCUS-RECORD.
I'm able to locate TCUS-RECORD in my program with DB-KEY but when I try to fetch its child using OBTAIN FIRST IN TCUS-TMEM (where TMEM-RECORD is child of TCUS), it gives me END OF SET though the TCUS-RECORD is available under TCUS-REC.
Please help me to check if I handled DB-KEY wrongly.
Joined: 10 May 2007 Posts: 2235 Location: Hampshire, UK
Are you 100% sure that a child exists? If so, how are you sure? It has been years since I did IDMS and I do not have my notes available as I am on holiday so I cannot check to see if there is an 'empty set' message code as opposed to end-of-set message code. If there is no 'empty set' code then I would suggest that your set is empty. If it is empty and it should not be then you have a lot of investigation to do to fine the program that didn't populate the set properly.