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

Revcoer the PDS Member


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
hari.makaraju

New User


Joined: 04 Jul 2006
Posts: 4

PostPosted: Fri Oct 05, 2007 10:41 am
Reply with quote

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

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Oct 05, 2007 11:27 am
Reply with quote

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

New User


Joined: 27 Apr 2006
Posts: 48
Location: Bangalore, India

PostPosted: Fri Oct 05, 2007 11:45 am
Reply with quote

There is another way to recover.

First Uncatalog the current volume by mentioned the volume number & then catalog the previous volume.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Oct 05, 2007 11:54 am
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Oct 05, 2007 12:06 pm
Reply with quote

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

New User


Joined: 16 May 2005
Posts: 32
Location: Millenium Business Park, Mumbai

PostPosted: Sat Oct 06, 2007 2:52 pm
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Oct 06, 2007 3:25 pm
Reply with quote

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

Global Moderator


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

PostPosted: Sat Oct 06, 2007 4:40 pm
Reply with quote

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
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
No new posts Looking For a PDS Member Without Open... PL/I & Assembler 10
No new posts Library member auto insert option TSO/ISPF 3
No new posts DataSet member creation failed with B... Java & MQSeries 15
Search our Forums:

Back to Top