Please add an Additional Column in the view SASHELP.VMACRO ( also to table DICTIONARY.MACROS) to Identify User Defined Macro Variables .User Defined here refers to ONLY Macro Variables defined in the SAS Code.
The Column may be named : UserDefined with values of Y or N. Therefore if a User wants to know the list of Macro variables defined up until a certain Step in the SAS Code he can simply use the below Code :
Proc Sql;
Select NAME from SASHELP.VMACRO
where UserDefined='Y';
Quit;