View previous topic :: View next topic
|
Author |
Message |
santosh100678
New User
Joined: 21 Sep 2009 Posts: 55 Location: Kolkatta
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Any particular reason for needing to know this ? |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
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 |
|
|
santosh100678
New User
Joined: 21 Sep 2009 Posts: 55 Location: Kolkatta
|
|
|
|
No,
I want to know any functinality is available in vsam for this check. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
None |
|
Back to top |
|
|
santosh100678
New User
Joined: 21 Sep 2009 Posts: 55 Location: Kolkatta
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
if you are using the workarea option on the write, you could always display the workarea during the close routine. |
|
Back to top |
|
|
|