BSTXCOPY- C1X0506E ROOT MODULE bbbbbb NOT ELECTED WITH ALIAS aaaaaa

Document ID : KB000099240
Last Modified Date : 07/06/2018
Show Technical Document Details
Question:
When copying load modules from PDS to PDSE using BSTXCOPY, getting error C1X0506E ROOT MODULE bbbbbb NOT SELECTED WITH ALIAS aaaaaa. 
Answer:
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.