View previous topic :: View next topic
|
Author |
Message |
Vinay Pushpala
New User
Joined: 06 Nov 2013 Posts: 21 Location: India
|
|
|
|
Hi all,
I need to know if there a way to force delete a ps file when it is opened by other users (in view or browse mode). All I know is PURGE option.
For example I use this in a job:
DELETE 'DATASETNAME' PURGE
Could anyone let me know if there any other way to do it ?
Any inputs can be helpful. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
WHY do you want to delete a data set opened by another user? This can lead to various problems up to and including corruption of the catalog, rendering the entire LPAR useless. |
|
Back to top |
|
|
Vinay Pushpala
New User
Joined: 06 Nov 2013 Posts: 21 Location: India
|
|
|
|
Hi Robert,
This is a problem I am facing now. I am trying to run a job which delete some data sets. But the message I get is that the data set is open.
I faced the same issue in the past. The delete & purge statement was working until yesterday. The same job is producing an error now.
The DELETE & PURGE might not work always as it is happening now.
And @Robert, yes, you are right about the standards & LPAR. Just wanted to know if there is any other ways to do it.
Thank you. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Delete the user, not the dataset. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Terry Heinze wrote: |
Delete the user, not the dataset. |
I concur. It's a relatively simple thing to find out who has an ENQ on a data set, and to take the appropriate action (anything from a gentle IM to a sarky e-mail to his manager.)
(Incidentally, on my first project mumblety years ago, we used a DG Nova mini for data collection. The command for forcing a logoff was KILL. The operator's manual noted that, as the system could not be shut down if anyone was logged on, it might be necessary to KILL a user ) |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Option 1 would be to use DISP=OLD on a DD statement so the job won't execute until the data set can be deleted.
Option 2 would be to manually find who has the ENQ on the data set and knock that user off the system.
The option you do NOT want to use is to attempt to delete the data set while it is in use by someone else. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Quote: |
The command for forcing a logoff was KILL. |
I think one of the old DEC machines used that same command! |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
on the other side... BSD has the BLESS command |
|
Back to top |
|
|
|