Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Revcoer the PDS Member

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Revcoer the PDS Member
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: 1288
Location: Chennai, India

PostPosted: Fri Oct 05, 2007 11:27 am    Post subject: Reply to: Revocer the PDS Member
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    Post subject: Reply to: Revocer the PDS Member
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: 1288
Location: Chennai, India

PostPosted: Fri Oct 05, 2007 11:54 am    Post subject: Reply to: Revocer the PDS Member
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
Location: italy

PostPosted: Fri Oct 05, 2007 12:06 pm    Post subject: Reply to: Revocer the PDS Member
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
Location: italy

PostPosted: Sat Oct 06, 2007 3:25 pm    Post subject: Reply to: Revocer the PDS Member
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: 8617
Location: Back in jolly old England

PostPosted: Sat Oct 06, 2007 4:40 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us