submit SAS code or macro from Toolbar

孤街浪徒 提交于 2019-12-06 03:06:59

问题


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?


回答1:


Certainly. Here is one way:

  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;

  6. 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;

  7. Put whatever you want in the help text and tip text fields

  8. Click OK then save


来源:https://stackoverflow.com/questions/686581/submit-sas-code-or-macro-from-toolbar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!