View previous topic :: View next topic
|
Author |
Message |
mauvis
New User
Joined: 27 Jul 2007 Posts: 11 Location: india
|
|
|
|
Hi ,
I have one VSAM file on which records will get appended every day.
now the job failed one day with out processing all records so my VSAM file did't have all the records for that particular day. and the job ran next day and net days records are appended.
Now my problem is I want the previous days VSAM files data to process them separately. Is there any procedure to referback the previous days VSAM file.
Hope u understand my problem. please help me out from this.
Thanks & Regards,
Mauvis. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Quote: |
Hope u understand my problem. |
You need to explain a little more..
mauvis wrote: |
now the job failed one day with out processing all records so my VSAM file did't have all the records for that particular day. |
This suggests to me that "for that logical day process couldn't append the records to VSAM" so VSAM at all doesn't contain records for a particular day. But now this
Quote: |
..I want the previous days VSAM files data to process them separately. |
is controdictory to my previous perception, does VSAM has Data or not, for that particular day? If Yes,
- do you have some "date field" in records to distinguish form other days ? If yes, you can use SORT for to fetch data for "relative dates".
- if not, you need to tell how do you distinguish data for different days ? There should be something.. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
From my understanding of this thread, my first concern would be what happened to the restart / rerun procedures to allow a job to stay in abend and then allow the next batch cycle to process.
This to me says Major flaw |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
This to me says Major flaw |
Surely needs looking into.
If there was a backup of the vsam file before the problem run, it should not be difficult to use the backup and the corrupted file and separate out the appended records. If there were updates and deletes, still possible, but more work.
The process needs to be modified to prevent this (IMHO). |
|
Back to top |
|
|
mauvis
New User
Joined: 27 Jul 2007 Posts: 11 Location: india
|
|
|
|
Thanks for the quick responce. There was no Back up file for this VSAM file, if so there was no problem of fixing the data.
Also my Vsam file don't have any specific field under which I can distinguish the records.. I will analize more and will let you know if i found something.
Thanks & Regads,
Mauvis. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
mauvis wrote: |
There was no Back up file for this VSAM file, if so there was no problem of fixing the data.
Also my Vsam file don't have any specific field under which I can distinguish the records.. |
Well, are you talking about a production issue in real..? |
|
Back to top |
|
|
|