sas - 如何编写 SAS 代码来打开 Viewtable 窗口?
问题描述
我想编写 SAS 代码来打开(和关闭)包含数据集的可视化窗口。你知道这样做的方法吗?
最好的
解决方案
该DM
语句将以编程方式发出显示管理器命令。您的程序将发出的命令是
viewtable
打开可视化窗口next
使窗口处于活动状态end
根据活动窗口执行各种操作:- 可视化,关闭窗口
- 编辑,提交代码
- 记录,切换到编辑器
示例代码
假设 viewtable 是打开的,后续代码将重建正在查看的数据集。如果窗口未关闭,则重建将由于视图表锁定而失败。
* close the window presumed to be open, releasing the lock;
dm 'next viewtable; end;';
* rebuild the data set;
data work.have;
set sashelp.cars(obs=10);
run;
* what hath I wrought ?;
* open a viewtable window and bring it to the top;
dm 'viewtable work.have' viewtable;
推荐阅读
- angular - 如何使用角材料组件创建 Html 电子邮件模板
- spring - 如何从弹簧安全成功处理程序将值传递给 Angular index.html
- html - 响应式 3 列下拉菜单
- ios - 从 Document 目录加载多个图像时 UICollectionView 卡住
- hadoop - 关于在 hive 表的 csv 表中填充数据
- python-2.7 - Perl 到 Python 脚本散列
- python-3.x - 如何在python中并排比较两个Pdf文件
- c# - 如何获取带有文件完整路径的字符串以复制文件
- javascript - 使用没有 PassportJS 的 ExpressJS 和 Angular 进行身份验证
- git - git log --pretty=format 末尾的百分比符号