To be clear, what is odd in the above code is including two datasets as arguments to both DEDUP and SORT. This sample came about due to someone (me) typing ECL into an email reply and making a copy and paste error, then someone else just pasting that into an editor. No one was actually trying to do something with this syntax.
What is going on, here? Why does it compile?