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

Retrive Perticular Record from IMS DB


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
creator.abhishek

New User


Joined: 07 May 2006
Posts: 32
Location: Pune

PostPosted: Thu Apr 26, 2007 11:38 am
Reply with quote

Hi all,

I phased one problem.. want to share with you all..
Suppose there are two segments only in database. Child B has three records
B1, B2, B3 then how can i get only B3 by single Call only..

I am thinking it should be by using command code L, which is for last occurrence, Not sure...

If there is three field only.. and want only third one in single call statement then..
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Thu Apr 26, 2007 1:30 pm
Reply with quote

probably you can use a qualified SSA to retreive a particular record.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Apr 26, 2007 1:37 pm
Reply with quote

Did You read the manual

What does the manual say ??

I guess we should feel honored for being trusted more than the official docs :-)

Just remember to define in Your DBD both a forward and backward pointer
otherwise all the calls accessing the last occurrence of a segment will have to follow the forward chain ( bad for performance )
Back to top
View user's profile Send private message
rameshfoa

New User


Joined: 05 Apr 2007
Posts: 27
Location: chennai

PostPosted: Fri Apr 27, 2007 10:59 am
Reply with quote

Yes u are rite...u can retrieve last segment record using command code 'L' and another question...do u want to retrieve third field only???...that is not possible....through IMS u can retrieve only the segment records not individual fields..
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Fri Apr 27, 2007 1:36 pm
Reply with quote

Hi Abhishek,

You can retrieve last segment by using L command code But u can't retrieve third field only because in IMS smallest block of information which u can retrieve is SEGMENT only.
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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
Search our Forums:

Back to Top