View previous topic :: View next topic
|
Author |
Message |
suchita_thorat
New User
Joined: 22 Feb 2008 Posts: 11 Location: Pune,India
|
|
|
|
Hi,
We have created one REXX tool for one of the work request, this tool search though the members of the PDS for particular string, if string found then it replace it with other string i.e. it update/change the member only when it finds the search string.
I run this tool on PDS,however after running the tool we lost timestamps of all the members in that PDS
Only the members which are changed have timestamp.
E.g. PDS --> G52409.TEST.TEST1
Members-->MEM1
MEM2
MEM3
Suppose MEM1 has search string and updated by tool, it has updated timepstamp for MEM1 accordingly.
However we lost timestamps of MEM2 and MEM3.
We need these timestamp back,it is important for us.
Any idea what can I do/try to get back?
Thanks in advance.
Thanks & Regards,
Suchita |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
If they're, they're gone. If you're lucky you might get back an older version of the PDS via HSM.
Next time test your tool on a scratch PDS and make sure it has no side effects, or use something like pdsupdte that doen't touch timestamps and is a hell of a lot faster than anything you code in REXX. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
however after running the tool we lost timestamps of all the members in that PDS |
the tool design overlooked some details, and/or was not properly tested for unexpected side effects...
but, You just complained, without giving anything to advice You on...
( that' s an hebit much too common around here )
as a general point...
allocate / execio will create members without ispf statistics
if You want to keep the ISPF statistics You should
- use and edit macro
- use the LM.... ISPF functions retrieving and later on rewriting the ISPF statistics |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Maybe the stats were not there to start with, and by performing updates it is you that have generated the stats for those members that have changed. |
|
Back to top |
|
|
|