Joined: 22 Feb 2008 Posts: 11 Location: Pune,India
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
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.
Joined: 07 Feb 2009 Posts: 1102 Location: Oostende, Belgium
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.
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