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

Issue in accessing Child record using DB-KEY


IBM Mainframe Forums -> IDMS/ADSO
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srinut123

New User


Joined: 11 Oct 2005
Posts: 62
Location: India

PostPosted: Mon Feb 25, 2013 1:01 pm
Reply with quote

Hi

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.

Regards
Sri
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1315
Location: Vilnius, Lithuania

PostPosted: Mon Feb 25, 2013 5:08 pm
Reply with quote

Line 4242 of your code is wrong.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Tue Feb 26, 2013 2:32 am
Reply with quote

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.
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 -> IDMS/ADSO

 


Similar Topics
Topic Forum Replies
No new posts Copy only TEXT or String from a record SYNCSORT 4
No new posts combine multiple unique records into ... DFSORT/ICETOOL 2
No new posts SORT on detail record, then repeat he... DFSORT/ICETOOL 3
No new posts XML Generate issue COBOL Programming 0
No new posts How to Login in to cics region and is... CICS 9
Search our Forums:

Back to Top