When you open a DATASET (as opposed some generic FILE) with the OPEN() function it returns a reference to that dataset. So to close it you pass that reference back to the CLOSE() function.
%let rc=%sysfunc(close(&mv_id_table)) ;
Missed SAS Innovate in Orlando?
Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.