Hello @arazavi1 and welcome to the SAS Support Communities!
This problem occurs if your input dataset (MiniVStand) happens to contain a character variable named LAST. The DATA step creating dataset _SUBSET in the macro tries to create an auxiliary numeric variable with the same name, which causes a name conflict. As a workaround you can (temporarily) rename variable LAST in your dataset:
proc datasets lib=work nolist;
modify MiniVStand;
rename last=mylast;
quit;
and use this modified version of the dataset in the %MVMODELS call.
... View more