View previous topic :: View next topic
|
Author |
Message |
hari.makaraju
New User
Joined: 04 Jul 2006 Posts: 4
|
|
|
|
Hi,
There was a program in my PDS . I have replaced it by other version and it is saved and closed. Is there any way to get back my old version… |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Your Lost member can only be RECOVERED if the BACKUP is aldready taken.
If the backup is available try using the TSO HRECOVER command. |
|
Back to top |
|
|
amrita.chatterjee
New User
Joined: 27 Apr 2006 Posts: 48 Location: Bangalore, India
|
|
|
|
There is another way to recover.
First Uncatalog the current volume by mentioned the volume number & then catalog the previous volume. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Quote: |
First Uncatalog the current volume by mentioned the volume number & then catalog the previous volume.
|
I dont think the volume would change when we edit a member in a dataset. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
First Uncatalog the current volume by mentioned the volume number & then catalog the previous volume. |
The O/P was asking how to recover an overwritten member of a PDS,
Your suggestion might apply to other scenarios, but not to this one.
if the PDS is a PDSE ( allocated with dsntype=LIBRARY)
there is nothing that can be done a member is lost :-)
in case the dataset is a traditional PDS let' distinguish :
1) load datasets
nothing can be done ( it's impossible to rebuild the original directory entry)
2) source-type datasets,
the directory entry points simply to the beginning of a member ( TTR pointer )
when a member is added or rewritten the new data is written to the end of the dataset
after the last member data and the old member is still there
even if is not pointed by any directory entry
in this case there are some tools usually home written that scan the PDS
and buld a new PDS with all the member data
(pointed by a directory entry, or an orphan )
Ask Your support people if there is such a tool available
- the name could be something like PDSAVE,
Otherwise such a tool can be found on the cbt tape
http://cbttape.org/
regards
e.s |
|
Back to top |
|
|
SCARCEBOYZ
New User
Joined: 16 May 2005 Posts: 32 Location: Millenium Business Park, Mumbai
|
|
|
|
Every shope maintains the backup for the dataset however it depends on your installation -
Try This
1) Type the command
TSO HLIST BCDS DSN (‘abc.def’).
Note down the generation number displayed.
2) Next type TSO HRECOVER 'abc.def' GEN(001) NEW
This command will recover based on the generation number mentioned.
You can recover the old pds and so the lost member from that pds.
I hope it should work. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
1) Type the command
TSO HLIST BCDS DSN (‘abc.def’).
Note down the generation number displayed.
2) Next type TSO HRECOVER 'abc.def' GEN(001) NEW
This command will recover based on the generation number mentioned. |
Mild suggestion...
It is always a bad idea to give the syntax of commands,
without being sure that the command is available,
the user is allowed to use it
and has the understanding of what he is doing
it will usually generate lots of useless traffic and
complaints that the command does not work..
request of clarifications about a mistyping and ... ... ...
and then somebody will tell that the command works at his installation
and so on and so on
regards
e.s |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Also I would strongly suggest the use of the NEWNAME parameter, as there may have been several updates since the backup version being used was taken. Using this parameter will recover the PDS to a newname WITHOUT over writing the original PDS.
That way you can then copy the member required to the PDS. If the PDS is a JES defined PROCLIB and is recovered to a different volume, this will cause you some serious system problems.
As for Enrico's comment regarding command syntax - please take notice - it is very good advice. |
|
Back to top |
|
|
|