JCL EXEC SORT not recognized

I have hundreds of JCLs that use SORT like this:


I have already added SORTD to System procedures but it doesn't seem to fix the error: 9015 Prodecure "SORTD" is not registered to the workspace.

I only avoid the error if I add: // PGM001 EXEC PGM = SORTD.

Is there a way to define the execution maybe in the Legacy.xml and avoid the change in each JCL?