新手请教:
要做一个macro program, 要求是显示出,
It is now 2:00:00 PM on 1 May 2011. (现在的时间)
60 Minutes Have Elapsed Since The Beginning Of This Session
这个流逝的时间60分钟 是个例子 因为执行的时间和打开程序的时间肯定有差距, 要round 到分钟 , 也许都不是同一天
%let starttime=%sysfunc(time(),timeampm11.0);
%let startday=%sysfunc(today(),worddatx.);
%put It is now &starttime on &startday..;
%put systime is: &systime &sysdate - when SAS started;
我写了上面,我知道这样能知道现在的时间和打开程序的时间,可是怎么算差额呢? 我试过了 用datetime() 减去系统时间可是没法减,因为是character的变量
请教哪位大牛教教我吧 我做这个题做了4个小时了 都想哭了