When copying load modules from PDS to PDSE using BSTXCOPY, getting error C1X0506E ROOT MODULE bbbbbb NOT SELECTED WITH ALIAS aaaaaa.
Possible problem is that the directory of the library contains orphan aliases (that is, entries that are aliases of a member that are no longer there). These orphan aliases need to be deleted.
C1X0506E ROOT MODULE bbbbbb NOT SELECTED WITH ALIAS aaaaa It means that BSTXCOPY is being asked to copy member 'aaaaaa' which, as per its directory entry, is an alias of member 'bbbbbb'. In order for this to work, BSTXCOPY needs to copy both 'aaaaaa' and 'rrrrrrr' in the same run.