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

vsam file refer back


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

New User


Joined: 27 Jul 2007
Posts: 11
Location: india

PostPosted: Sun Sep 21, 2008 10:26 am
Reply with quote

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

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sun Sep 21, 2008 12:56 pm
Reply with quote

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

Global Moderator


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

PostPosted: Sun Sep 21, 2008 1:42 pm
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Sep 21, 2008 2:47 pm
Reply with quote

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

New User


Joined: 27 Jul 2007
Posts: 11
Location: india

PostPosted: Mon Sep 22, 2008 12:14 am
Reply with quote

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

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Sep 22, 2008 12:40 am
Reply with quote

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
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
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 Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top