Hi,
The SORT Procedure allows only one dataset in the input dataset.If you have common variable in both datsets ,sort them individullay.Still i am not clear about task,If you provide some more details i may helpful for you.
Catch up on SAS Innovate 2026
Dive into keynotes, announcements and breakthroughs on demand.