Renaming and removing files

You can remove or rename a z/OS® data set that has an uppercase filename by using the remove() or rename() library functions, respectively. rename() and remove() both accept data set names. rename() does not accept ddnames, but remove() does. You can use remove() or rename() on individual members or entire PDSs or PDSEs. If you use rename() for a member, you can change only the name of the member, not the name of the entire data set. To rename both the member and the data set, make two calls to rename(), one for the member and one for the whole PDS or PDSE.