On 10/5/2019 1:29 AM, Bill Giannelli wrote:
I am trying to rename a CLIST library allocated to users for ISPF. how do I force users to deallocate the dataset so I can rename it? I have been sending tso messages but more users keep allocating it.
In a busy environment, you will never be able to keep up with canceling all of the jobs and/or users that might be accessing this file. Like a "Whack-a-Mode" game. Each time you cancel one, another pops up to take its place. Besides, canceling users is DISRUPTIVE!
The best way is to rename the data set while holding an exclusive ENQ on it. Submit this job before you go to sleep and when you wake up the next morning, the data set should be renamed.
//RENAME JOB 1,JAFFE,CLASS=A,MSGCLASS=T,NOTIFY=&SYSUID //RENAME EXEC PGM=IDCAMS //ENQOLD DD DSN=old.data.set.name,DISP=OLD //SYSPRINT DD SYSOUT=* //SYSIN DD * ALTER old.data.set.name - NEWNAME(new.data.set.name) - FILE(ENQOLD) // -- Phoenix Software International Edward E. Jaffe 831 Parkview Drive North El Segundo, CA 90245 https://www.phoenixsoftware.com/ -------------------------------------------------------------------------------- This e-mail message, including any attachments, appended messages and the information contained therein, is for the sole use of the intended recipient(s). If you are not an intended recipient or have otherwise received this email message in error, any use, dissemination, distribution, review, storage or copying of this e-mail message and the information contained therein is strictly prohibited. If you are not an intended recipient, please contact the sender by reply e-mail and destroy all copies of this email message and do not otherwise utilize or retain this email message or any or all of the information contained therein. Although this email message and any attachments or appended messages are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by the sender for any loss or damage arising in any way from its opening or use. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN