I open another (existing) code file using the first Enhanced Editor:
dm whostedit 'include ".\FOLDER1\FILE1.sas"';
Now, two enhanced editors are open. I wanted to reshape the second enhanced editor (i.e., FILE1.sas), so I run the below code in the second editor.
DM 'wdef 1 122 100 120';
The process of reshaping works well as expected. But it automatically puts the first editor ahead of the second editor even though I run the code in the second editor. Put differently I expected to stay with the second editor having prompt on the second editor. Can I fix this issue? Then I can keep coding in the second editor after executing the DM statement. I hope my explanation is clear.
This works when running on Windows.
* Make a text file to have something to test with ;
data _null_;
file 'c:\downloads\test1.sas';
put '*test program;' ;
run;
dm whostedit "include 'c:\downloads\test1.sas';wdef 1 122 100 120;next" ;
Not sure if it works if you are using Display Manager on Unix, but then you cannot open two program editors on Unix anyway.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.