A PDSE is a Partitioned Data Set Extended. It consists of a directory and zero or more members, just like…