Is it possible to allocate a SAS script or macro to a Toolbar button in Base SAS? ie can you 'dm' a macro or sas script?
Certainly. Here is one way:
- Go to Tools->Customize.
- Select the Customize Tab
- Create a new blank button by clicking the "Add Tool" (left most button, right above the word "command"
- Select an icon for the new button using the "change icon" button (otherwise it will be blank and won't show up in the toolbar)
To have the button submit a compiled macro, type this in the command field (substituting your macro name of course):
%nameofmacro;run;
To have the button submit an external sas file, you would put something like this in the command field instead:
%include "C:\path-to-file\name-of-program.sas";run;
Put whatever you want in the help text and tip text fields
- Click OK then save
来源:https://stackoverflow.com/questions/686581/submit-sas-code-or-macro-from-toolbar