I am using Sublime text editor to do the majority of my code writing in SAS. The only real issue is that I have to run the file in batch mode and cannot run individual bits of code easily. For the most part this does not bother me but occasionally it is nice to have SAS and Sublime open at the same time working on the same file. If I change something in SAS and save it sublime automatically refreshes the file and changes. Unfortunately, SAS does not return the favor. I have been messing around with using the autoexec.sas file and the display manager but I am having issues. This bit of code will close the file and open it again.
dm editor 'winclose' editor; dm editor 'inc "%sysget(SAS_EXECFILEPATH)"' editor;
I then tried to put this in a macro
%macro Refresh;
dm editor 'winclose' editor;
dm 'inc "%sysget(SAS_EXECFILEPATH)"';
%mend;
and add the key definition
dm "keydef F12 '%NRSTR(%Refresh);";
When I hit F12 I get
ERROR: Two or more Commands Start with 'dm'. Please reenter.
Anyone have any ideas on how to fix this?