使用工具栏从编辑器提交 SAS 代码

发布于 2024-07-15 08:10:17 字数 241 浏览 3 评论 0原文

通过 SAS 工具栏提交 SAS 代码时(例如 cmjohns 响应)编译器知道代码正在被“DM”处理,并且不会运行某些代码(例如%window)。

有没有办法欺骗 SAS 相信从工具栏提交的代码来自编辑器,从而允许通过点击触发界面(使用 %window)?

When submitting SAS code via the SAS Toolbar (eg cmjohns response) the compiler knows that the code is being "DM'd" and will not run certain code (eg %window).

Is there a way to trick SAS into believing that code submitted from the Toolbar is coming from the Editor, therefore allowing interfaces (using %window) to be triggered via point and click?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

╭⌒浅淡时光〆 2024-07-22 08:10:17

它不是超级干净,但这样就可以了。 唯一的缺点是运行后将打开程序编辑器窗口。 完成后可能有一种方法可以关闭它,但我不知道那是什么。

pgm; clear;include "C:\path\code.sas"; submit;

基本上,这表示打开一个新的程序编辑器窗口并确保其中没有其他代码,然后将 code.sas 的内容包含到编辑器中,然后提交程序编辑器中的所有代码。

作为旁注,除了工具栏按钮之外,我认为您还可以将功能键映射到这样的命令。 按F9调出当前映射。 映射到键的命令的长度有限制,但路径不能太长。

It isn't super clean, but this will do it. The only downside is a program editor window will be open after it runs. There's probably a way to close it when it's done but I don't know what that is off hand.

pgm; clear;include "C:\path\code.sas"; submit;

Basically, this says to open a new program editor window and make sure no other code is in it, then include the contents of code.sas into the editor, then submit all the code that's in the program editor.

As a side note, in addition to a toolbar button, I think you could map a function key to a command like this as well. Press F9 to pull up the current mapping. There is a limit to the length of the command mapped to a key though so no long paths.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文