MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Reading Segments from BACK in IMS.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS
View previous topic :: View next topic  
Author Message
Hilltop
Beginner


Joined: 14 Oct 2004
Posts: 62
Topics: 21

PostPosted: Fri Nov 19, 2004 5:54 pm    Post subject: Reading Segments from BACK in IMS. Reply with quote

Is there any way to read segments from backwords. First I give a call 'cbltdli' with *L command which read the last record and from there I need to go backward.

Please let me know.

thanks.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Sat Nov 20, 2004 8:35 am    Post subject: Reply with quote

Hiltop,

You can read backwards thru an IMS database if the segment in question has pointers. check this link for Physical Twin Forward and Backward Pointers

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Hilltop
Beginner


Joined: 14 Oct 2004
Posts: 62
Topics: 21

PostPosted: Mon Nov 22, 2004 9:08 am    Post subject: Reply with quote

Thanks Kolusu.

So If I put PTR=TB in my segment in the DBD, the successful GN call will take me backward to forward right?

Will try this and let you know.

Thanks.
Back to top
View user's profile Send private message
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Mon Nov 22, 2004 9:22 am    Post subject: Reply with quote

You cannot read backwards thru a database - these pointers improve performance when deleting segments as IMS can locate the previous segment using PTB.
Back to top
View user's profile Send private message
Hilltop
Beginner


Joined: 14 Oct 2004
Posts: 62
Topics: 21

PostPosted: Mon Nov 22, 2004 1:26 pm    Post subject: Reply with quote

Thanks Bithead. I guess there is no way to read backward. I remember in ACU cobol reading backward from a file.

Sad
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group