View previous topic :: View next topic
|
Author |
Message |
Rajesh S Warnings : 1 New User
Joined: 11 Jul 2007 Posts: 54 Location: Chennai
|
|
|
|
Hi friends,
How to access the last record in the KSDS using RANDOM access mode without using KEY. I dont know the key size..
Regards
Rajesh S |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I'm pretty sure that there's no way and that you have to read the file sequentially from the top until you reach EOF. But, I'll defer to the VSAM experts in case I'm wrong. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
I'm pretty sure you are right Kevin, at least where the simple COBOL coding goes..... |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
I dont know the key size.. |
A simple IDCAMS LISTCAT will at least tell you that much.
But ......... without knowing the key value it does rather look like a long sequential trudge though the file. |
|
Back to top |
|
|
|