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

how can we access directly a last record


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ysuryawanshi_mcs
Warnings : 1

New User


Joined: 25 Mar 2006
Posts: 15
Location: pune(India)

PostPosted: Fri Mar 31, 2006 7:27 pm
Reply with quote

how can we access directly a last record from the any file ksds or rrds or esds using any technique
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Fri Mar 31, 2006 7:49 pm
Reply with quote

hy luvkishore75,

i don't know any technique to read the last record
of any vsam file directly. therefore if needed,
i would unload the file with idcams repro sequentially
and sort it in reverse order...
means after this, the first read is teh last record.

if there is any better way, i would like to know also...

martin9
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Fri Mar 31, 2006 8:04 pm
Reply with quote

See the following Smart DFSORT Trick:

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/srtmst03.html#t11
Back to top
View user's profile Send private message
ysuryawanshi_mcs
Warnings : 1

New User


Joined: 25 Mar 2006
Posts: 15
Location: pune(India)

PostPosted: Sat Apr 01, 2006 7:26 pm
Reply with quote

There must be some reason behind this name mainframe..!
What is it..? (Have anyone think about it)
Back to top
View user's profile Send private message
shivani_tech
Warnings : 2

New User


Joined: 08 Jan 2006
Posts: 22
Location: UNITED KINGDOM

PostPosted: Sun Apr 02, 2006 12:46 pm
Reply with quote

use start command.move key value and if u dont know move high values to key.set pointer for that and read it
Back to top
View user's profile Send private message
ysuryawanshi_mcs
Warnings : 1

New User


Joined: 25 Mar 2006
Posts: 15
Location: pune(India)

PostPosted: Mon Apr 03, 2006 4:21 pm
Reply with quote

hi shivani r u there
i want some specific lines of code that i can easily do what i want.
so plz giv me that code for start and moving key value and setting pointer
i want all that things using cobol 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 -> DFSORT/ICETOOL

 


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