BookmarkSubscribeRSS Feed
braam
Quartz | Level 8

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.

2 REPLIES 2
FreelanceReinh
Jade | Level 19

Hi @braam,

 

Try the CONTINUE option:

dm 'wdef 1 122 100 120' continue;
Tom
Super User Tom
Super User

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.

 

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 796 views
  • 0 likes
  • 3 in conversation