View previous topic :: View next topic |
Author |
Message |
Hilltop Beginner
Joined: 14 Oct 2004 Posts: 62 Topics: 21
|
Posted: Fri Nov 19, 2004 5:54 pm Post subject: Reading Segments from BACK in IMS. |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
Hilltop Beginner
Joined: 14 Oct 2004 Posts: 62 Topics: 21
|
Posted: Mon Nov 22, 2004 9:08 am Post subject: |
|
|
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 |
|
 |
Bithead Advanced

Joined: 03 Jan 2003 Posts: 550 Topics: 23 Location: Michigan, USA
|
Posted: Mon Nov 22, 2004 9:22 am Post subject: |
|
|
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 |
|
 |
Hilltop Beginner
Joined: 14 Oct 2004 Posts: 62 Topics: 21
|
Posted: Mon Nov 22, 2004 1:26 pm Post subject: |
|
|
Thanks Bithead. I guess there is no way to read backward. I remember in ACU cobol reading backward from a file.
 |
|
Back to top |
|
 |
|
|