PDSM19 is a TSO Command Processor that requires a TSO environment for execution.
This document describes how to properly execute PDSM19 in the batch environment.
The PDSMAN (alias of PDSM19) TSO Command Processor provides a useful set of subcommands to display and modify library members.
PDSM19 is intended primary for use from the TSO ready prompt, ISPF Option 6, or option 1 from the PDSMAN ISPF Master Menu.
However, it can be executed in batch as shown in the following JCL:
//PDSM19 EXEC PGM=IKJEFT01,TIME=1440,DYNAMNBR=30,REGION=3072K
//SYSTSPRT DD SYSOUT=A
//SYSTSIN DD *
Note that there are other options for deleting members in a batch job, such as the PDSMAN FastCopy EDITDIR function, that are preferred to using PDSM19.