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.

 

 

Ready to join fellow brilliant minds for the SAS Hackathon?

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!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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