使用工具栏从编辑器提交 SAS 代码
通过 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它不是超级干净,但这样就可以了。 唯一的缺点是运行后将打开程序编辑器窗口。 完成后可能有一种方法可以关闭它,但我不知道那是什么。
基本上,这表示打开一个新的程序编辑器窗口并确保其中没有其他代码,然后将 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.
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.