问题描述
是否可以将 SAS 脚本或宏分配给 Base SAS 中的工具栏按钮?即你能'dm'一个宏或sas脚本吗?
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;
%nameofmacro;run;
要让按钮提交外部 sas 文件,您可以在命令字段中添加类似内容:
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;
%include "C:\path-to-file\name-of-program.sas";run;
在帮助文本和提示文本字段中输入您想要的任何内容
Put whatever you want in the help text and tip text fields
这篇关于从工具栏提交 SAS 代码或宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!