Joined: 06 Jun 2008 Posts: 8231 Location: Dubuque, Iowa, USA
1. Terminology note: go back to the manuals and read them until you understand the difference between a version of a GDG and a generation of a GDG. Both version and generation are valid, though very different, components of a GDG. There can only be one version for a generation cataloged at a time, but up to 255 generations.
2. You cannot have more than 255 versions of a GDG cataloged, so what you said here is utter garbage:
I need to delete around 150,000 versions of one GDG
because (1) you don't have more than 255 generations at a time for one GDG, and (2) you cannot have more than 1 version at a time for a generation.
3. SUBRATA.FORMJ167.SUB#MSG.D010502.T140129 looks more like a temporary data set name, although it could be something created by an application.
4. This is a HELP forum, not a WRITE-THE-JCL-FOR-YOU forum. Once you've coded up something and have trouble getting it to work, post your JCL and ask questions. But don't ask to be given JCL or code -- unless you're willing to pay the daily rate for professional assistance.