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

Currently which record is updated in vsam file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
santosh100678

New User


Joined: 21 Sep 2009
Posts: 55
Location: Kolkatta

PostPosted: Thu Sep 24, 2009 7:20 pm
Reply with quote

Hi,

Is there any fuctinality in vsam where i know which record is inserted last in my vsam file.

My requirement is MY VSAM file whcih is daily upadted in batch prcess using one sequential file and vsam file is daily delete/define and daily inserted throu my new version of sequentail file ,my job is compleated sucessful at batch now i want to knwo which record is inserted last in my vsam file.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Sep 24, 2009 7:30 pm
Reply with quote

Any particular reason for needing to know this ?
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Thu Sep 24, 2009 7:37 pm
Reply with quote

Not unless your VSAM file records contain an "updated" timestamp field that you can access at job end time. Or you can write the last record of your sequential file out to a new file and that will be the "last record updated". I echo expat's question though.
Back to top
View user's profile Send private message
santosh100678

New User


Joined: 21 Sep 2009
Posts: 55
Location: Kolkatta

PostPosted: Thu Sep 24, 2009 7:40 pm
Reply with quote

No,

I want to know any functinality is available in vsam for this check.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Sep 24, 2009 7:41 pm
Reply with quote

None
Back to top
View user's profile Send private message
santosh100678

New User


Joined: 21 Sep 2009
Posts: 55
Location: Kolkatta

PostPosted: Thu Sep 24, 2009 7:46 pm
Reply with quote

Thanks expat,

For this requirement I have include timestamp field in my program and put display statement for last inserted record.
or
any otherview
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Sep 25, 2009 4:35 pm
Reply with quote

if you are using the workarea option on the write, you could always display the workarea during the close routine.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top