501: Patterns (% and *) may only be specified in the last qualifier when in directory mode

Explanation

The LIST or NLST command was entered with a path name that contained the global file-name characters % and *. The global file-name characters were not in the last qualifier of the path name, and the MVS™ server was currently in directory mode. The global file-name characters can only be used in the last qualifier when the server is in directory mode.

System action

The LIST or NLST command is rejected.

User response

Either correct the path name to have the global file-name characters in the last qualifier and reissue the command in directory mode, or issue the SITE DATASETMODE command to change the server to data set mode and then reissue the LIST or NLST command as is.

System programmer response

None.