We submit a batch job with two steps: first step IEFBR14 with the dataset name allocated DISP=OLD, second step IDCAMS to do ALTER dsname NEWNAME(newdsname). The job ENQs on the dataset name so new TSO allocations for it fail, and the job waits until all TSO users using it have freed it or logged off. Once it has the dataset it finishes very quickly.
I think we tried having some 'dummy' DD in the IDCAMS step with the dataset name and DISP=OLD (eliminating the IEFBR14) but I can't remember if that worked or not ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
