501: Partitioned data set may not be deleted within a partitioned data set

Explanation

The RMD command was issued to delete a PDS. The path name specified with the RMD command was not in quotation marks, indicating that the path name should be appended to the current working directory to determine the name of the PDS to be deleted, but the current working directory was already a PDS and could not be appended to the path name.

System action

The RMD command is rejected. Control returns to the client for further command processing.

User response

Either issue a CWD command to change to current working directory and then issue the RMD command as before, or issue the RMD command with the fully qualified data set name in quotation marks to prevent the current working directory from being appended.

System programmer response

None.