Page 1 of 2

Back up dataset before it is deleted.

PostPosted: Mon Jun 13, 2011 2:58 pm
by Vinayak
hi all,

I am looking for some help in REXX tool developement. i have a requirement that i want to back up a dataset before it is deleted using 'D' command in DSLIST panel (P.3.4 option).
If anyone can tell me is there a way to capture the 'D' command and change its default behaviour to first copy dataset and then delete it. If would be very helpful for me.

- Vinayak

Re: Back up dataset before it is deleted.

PostPosted: Mon Jun 13, 2011 3:48 pm
by enrico-sorichetti
... first copy dataset ...


better to review Your terminology and the requirement
( or it is just a self inflicted pain )

to take a backup is something different from copying
if You are happy with simply copying just a rename would be enough

but... why not speak to your storage support to see what is available ?

Re: Back up dataset before it is deleted.

PostPosted: Mon Jun 13, 2011 5:19 pm
by NicC
If you are going to copy and delete - why bother? Why not leave it as it is? Or just rename it.

Re: Back up dataset before it is deleted.

PostPosted: Mon Jun 13, 2011 8:55 pm
by Vinayak
hi all,

Thanks for your replies...

Actually i want to copy the data set to some other location(id), when by mistake someone deletes it, so that i can recover it.

i want to handle the situation of data set being deleted accidentally before the system admin takes the back up.

Any pointers will be helpful...

- Vinayak

Re: Back up dataset before it is deleted.

PostPosted: Mon Jun 13, 2011 9:18 pm
by enrico-sorichetti
just a waste of time...
for any resource at any time there will always be an uncertainty interval
so it would be wiser to learn to live with that and concentrate on other issues!

Re: Back up dataset before it is deleted.

PostPosted: Tue Jun 14, 2011 7:32 pm
by Pedro
when by mistake someone deletes it,

Use RACF to protect it, so it cannot be deleted by 'someone'.

Re: Back up dataset before it is deleted.

PostPosted: Wed Jun 15, 2011 12:33 pm
by mongan
Are you a system programmer? If yes you can probably do something like this, but you have to have the authority to be able to work with ISPF defaults, perhaps with an Imacro, etc.

Re: Back up dataset before it is deleted.

PostPosted: Wed Jun 15, 2011 3:39 pm
by NicC
i want to handle the situation of data set being deleted accidentally before the system admin takes the back up.

Perhaps this copy should be made as part of the process that generates the dataset.

Re: Back up dataset before it is deleted.

PostPosted: Sun Jul 24, 2011 11:55 pm
by shantanuag
Hi Vinayak,

Using Rexx it is not actually possible since Rexx Execution will make your system hang. Also Rexx tool will not be able to monitor all the datasets currently cataloged for all user id's. Even if has to monitor the datasets which are being created/allocated under your user id then too it is not for large no it will fail.

Re: Back up dataset before it is deleted.

PostPosted: Tue Jul 26, 2011 1:09 am
by Akatsukami
shantanuag wrote:Hi Vinayak,

Using Rexx it is not actually possible since Rexx Execution will make your system hang.


Indeed?

Also Rexx tool will not be able to monitor all the datasets currently cataloged for all user id's. Even if has to monitor the datasets which are being created/allocated under your user id then too it is not for large no it will fail.


Whilst the TS's intention shows a lack of good procedure, I think that this comment has nothing at all to do with what he wants.