Back up dataset before it is deleted.



IBM's Command List programming language & Restructured Extended Executor

Back up dataset before it is deleted.

Postby Vinayak » Mon Jun 13, 2011 2:58 pm

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
Vinayak
 
Posts: 18
Joined: Tue Feb 09, 2010 7:01 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Back up dataset before it is deleted.

Postby enrico-sorichetti » Mon Jun 13, 2011 3:48 pm

... 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 ?
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Back up dataset before it is deleted.

Postby NicC » Mon Jun 13, 2011 5:19 pm

If you are going to copy and delete - why bother? Why not leave it as it is? Or just rename it.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Back up dataset before it is deleted.

Postby Vinayak » Mon Jun 13, 2011 8:55 pm

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
Vinayak
 
Posts: 18
Joined: Tue Feb 09, 2010 7:01 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Back up dataset before it is deleted.

Postby enrico-sorichetti » Mon Jun 13, 2011 9:18 pm

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!
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Back up dataset before it is deleted.

Postby Pedro » Tue Jun 14, 2011 7:32 pm

when by mistake someone deletes it,

Use RACF to protect it, so it cannot be deleted by 'someone'.
Pedro Vera
User avatar
Pedro
 
Posts: 684
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times

Re: Back up dataset before it is deleted.

Postby mongan » Wed Jun 15, 2011 12:33 pm

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.
User avatar
mongan
 
Posts: 211
Joined: Tue Jan 11, 2011 8:32 pm
Has thanked: 1 time
Been thanked: 5 times

Re: Back up dataset before it is deleted.

Postby NicC » Wed Jun 15, 2011 3:39 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Back up dataset before it is deleted.

Postby shantanuag » Sun Jul 24, 2011 11:55 pm

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.
shantanuag
 
Posts: 1
Joined: Fri Jul 15, 2011 1:12 am
Has thanked: 0 time
Been thanked: 0 time

Re: Back up dataset before it is deleted.

Postby Akatsukami » Tue Jul 26, 2011 1:09 am

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.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Next

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post