Programming the statistical procedures from SAS

print time question

Reply
N/A
Posts: 0

print time question

when I use proc print,it print date,like follows:
The SAS System 08:41 Saturday, September 4, 2009 17

I find the date is not my current computer date,for example,my computer date is 16:41 Friday, September 4, 2009
it shows
The SAS System 08:41 Saturday, September 4, 2009 17

Why? Where is wrong?

Thanks
SAS Employee
Posts: 156

Re: print time question

It's the time you started your SAS session

data _null_;
call symput("print_date",left(put(datetime(),datetime.)));
run;
proc print data=sashelp.class;
title "&sysdate. - &systime. - &print_date.";
run;
Ask a Question
Discussion stats
  • 1 reply
  • 50 views
  • 0 likes
  • 2 in conversation