本文介绍了从工具栏提交 SAS 代码或宏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将 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:

  1. 转到工具->自定义.
  2. 选择自定义标签
  3. 通过单击添加工具"(最左侧的按钮,命令"一词的正上方)创建一个新的空白按钮
  4. 使用更改图标"按钮为新按钮选择一个图标(否则它将为空白并且不会显示在工具栏中)
  5. 要让按钮提交已编译的宏,请在命令字段中输入以下内容(当然要替换您的宏名称):

  1. Go to Tools->Customize.
  2. Select the Customize Tab
  3. Create a new blank button by clicking the "Add Tool" (left most button, right above the word "command"
  4. 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)
  5. 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 代码或宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-04 22:25