Joined: 14 Mar 2007 Posts: 8593 Location: Back in jolly old England
What happened when you tried it for yourself.
Hardly a difficult thing to do is it. Of course you might have considered using Dfdss instead of IDCAMS as this has great wildcard and filtering capabilities and also offers the option of performing a backup before deletion.
Suspect IDCAMS has a limit of 4096 statements in a single execution, and not just deletes. But if you're at later releases of ZOS (maybe 1.11 or 1.12 up) you can use masks in the dataset names which means you could reduce the number of statements required.
DFDSS DUMP with DELETE to a DUMMY DD is a good alternative but it won't handle datasets migrated by DFHSM.