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

Recovering the original files back after a base run


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

New User


Joined: 17 Jan 2007
Posts: 4
Location: Mumbai

PostPosted: Fri Feb 02, 2007 7:38 pm
Reply with quote

Hi all,
I have some code which has undergine some change.Before the actual changes,a base run was made and the files stored. However these are deleted(UNINTENTIONALLY) and the new code run.
Is there any way of getting the original files back(without reverting the code changes and running the program again)?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Feb 02, 2007 7:56 pm
Reply with quote

How about executing the original code from a backed up lib?
And relax, we understand, bad deletes icon_eek.gif are always "UNINTENTIONAL"... icon_rolleyes.gif
Back to top
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Fri Feb 02, 2007 8:05 pm
Reply with quote

You can recover deleted datasets only if the datasets were dumped prior to their deletion. When a dataset is deleted on disk, the dataset name is removed from the catalogue, but the data still resides on disk but can be written over at any point by another dataset needing space. Once written over, the data is lost.

If you have written your dataset to tape and have uncatalogued the tape, the tape returns to scratch status. If you can get to the tape before it is written over, you can recover the dataset.

If your original code is in a member of a PDS and you have saved new code on top of that member, you can recover deleted PDS members as long as you haven't compressed the PDS:

Restoring a Deleted Member of a PDS
In 3.4, access the dataset and enter either of the following commands next to it.
PDS / RES TTT FIND(?info inside the lost member?) REPEAT NOPROMPT
PDS / RES TTT FIND(?????) REPEAT NOPROMPT
Members will be restored in the PDS with TTT00001, TTT00002, etc.
Back to top
View user's profile Send private message
srinivas pendyala

New User


Joined: 17 Jan 2007
Posts: 4
Location: Mumbai

PostPosted: Fri Feb 02, 2007 8:12 pm
Reply with quote

Thank you and sorry for labelling the bad deletes.
Since I am using Endevor I am told to select and generate the older version.That may not take long time as expected.
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 Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top