DATA Step, Macro, Functions and more

Amending 'key' functions

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 14
Accepted Solution

Amending 'key' functions

Hi,

When I use:

data _null_;

call execute('dm wedit''keydef "F12" clear log; clear output;'' wedit;');

run;

to create a new function associated with the key 'F12' I get only 'clear log' on the key command.  How do I get 'clear log; clear output;' onto the key menu though code?

Thanks,

Connie


Accepted Solutions
Solution
‎06-28-2011 01:29 PM
Frequent Contributor
Posts: 104

Re: Amending 'key' functions

Don't need the data step since DM is a global command you can execute anywhere.

Syntax is almost there, just need the desired command inside quotes.

This should do it:

dm ' keydef F12 "clear log; clear output;"  ';

View solution in original post


All Replies
Solution
‎06-28-2011 01:29 PM
Frequent Contributor
Posts: 104

Re: Amending 'key' functions

Don't need the data step since DM is a global command you can execute anywhere.

Syntax is almost there, just need the desired command inside quotes.

This should do it:

dm ' keydef F12 "clear log; clear output;"  ';

Occasional Contributor
Posts: 14

Re: Amending 'key' functions

That worked perfectly!!  Thanks!!!

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 130 views
  • 0 likes
  • 2 in conversation