SAS Enterprise-guide 运行时间累计而不是单独的处理时间

发布于 2025-01-17 12:36:33 字数 454 浏览 3 评论 0原文

如何显示整个SAS项目而不是单个流程运行时间的运行时间? :

可以存储运行时间,因此我可以对工作的统计数据进行统计信息?

我希望你能将我指向正确的方向。

#更新: 也许我对@kermit解决方案的问题是我的过程的结构方式:

How do I show get the run time for the whole SAS project instead of the individual process run times? :
Run Time example

Would it possible to store the run times, so I can make statistics on how the job performs over time?

I hope you can point me in the right direction.

#Update:
Maybe my issue with @kermit solution is how my process is structured:
Project structure

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

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

发布评论

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

评论(1

︶ ̄淡然 2025-01-24 12:36:33

假设您有以下SAS项目

   nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp;  nbsp; ” 。

data lib.log;
length date 8. run_time 8.;
format date datetime17. run_time time8.;
stop;
run;

我现在要做的是在第一个程序之前添加一个程序(start.sas),而在最后一个程序/导出作业(end.sas)之后过程流。

      nbsp; nbsp; nbsp; nbsp; nbsp; 映像”

“>

libname lib "<path-to-your-folder>"
%let run_start = %sysfunc(time());

“ alt =“在此处输入

%let run_end = %sysfunc(time());

proc sql;
insert into lib.log
values(%sysfunc(datetime()), %sysevalf(&run_end.-&run_start.))
;
quit;

,您只需要右键单击“开始程序”,然后选择从选定的项目运行的,它将插入日期并运行时间在执行结束时运行到日志表中您的项目。

&nbsp;&nbsp;&nbsp; nbsp;&nbsp; nbsp; nbsp; nbsp; nbsp; nbsp;&nbsp;&nbsp;&nbsp; nbsp; p; &nbsp;&nbsp;&nbsp; nbsp;&nbsp; nbsp; nbsp; nbsp; nbsp; nbsp;&nbsp;&nbsp;&nbsp; nbsp; p;

Let's say you have the following SAS project

                         enter image description here

The first step would be to create the an empty log sas table in a pre-defined library.

data lib.log;
length date 8. run_time 8.;
format date datetime17. run_time time8.;
stop;
run;

What I would do now is adding a program (START.sas) before the first program and one after the very last program/export job (END.sas) to run in the process flow.

             enter image description here

START.sas

libname lib "<path-to-your-folder>"
%let run_start = %sysfunc(time());

END.sas

%let run_end = %sysfunc(time());

proc sql;
insert into lib.log
values(%sysfunc(datetime()), %sysevalf(&run_end.-&run_start.))
;
quit;

With that, you only need to right-click on the start program and select Run from selected item and it will insert the date and run time into the log table at the end of the execution of your project.

                                                  enter image description here

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