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

How to access the last record in KSDS without KEY


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Rajesh S
Warnings : 1

New User


Joined: 11 Jul 2007
Posts: 54
Location: Chennai

PostPosted: Thu Mar 06, 2008 12:00 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Mar 06, 2008 12:12 am
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Mar 06, 2008 12:38 am
Reply with quote

I'm pretty sure you are right Kevin, at least where the simple COBOL coding goes.....
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Mar 06, 2008 7:35 am
Reply with quote

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
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 -> JCL & VSAM

 


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 Access to non cataloged VSAM file JCL & VSAM 18
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts How to access web services/website? Mainframe Interview Questions 4
Search our Forums:

Back to Top