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.
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: