A S213-04 abend can occur when doing various package actions after having converted a listing library from PDS to ELIB.
The affected package actions are:
All supported Releases
Endevor
Package Ship
The abend occurs when the Endevor package action finds a package backout record that now points to an ELIB, while it was pointing to a PDS or PDSE at time the backout record and member were created.
As Endevor cannot handle backout records for ELIBs, it is not expecting a package backout record is pointing to an ELIB, so it opens the listing library using the incorrect I/O program, which leads to the S213-04 abend.
Run the Endevor job BC1JRPKG with the following DD statement allocated:
//EN$BKOUT DD DUMMY
When EN$BKOUT is allocated, BC1PPKGC will not only do standard package record cleanup but also remove all backout records pointing to ELIBs. After the clean-up all the previously mentioned package actions will work again.