@Paul_Dutton ,
Thank you for your code.
I have a process that copies a dataset ; if the dataset already exists and I can’t acquire a lock, I just simply do a FDELETE (because it is ok in our case) which allows for me to continue my copy because we use LINUX. Therefore i am freeing the dataset.
But unfortunately with Windows, if a dataset is opened or locked we can’t use any of the cmd listed in the pipe line that you provided.
I was able to use your code by using the « DOS » commands with the Pipe if the dataset isn’t locked ….I learned something with pipes. Thank you. With Linux, if I have a locked dataset, I can easily do a fdelete, and then I can copy the dataset.
... View more