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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.