Hi:
Are you following your TITLE statement with a procedure or some process that -uses- a TITLE statement??? Normally, the title statement by itself just changes the title in the SAS "holding area" for titles. You wouldn't see the results of the TITLE statement unless you did this:
options nodate;
data _null_;
call symput ('timenow',put (time(),time.));
call symput ('datenow',put (date(),date9.));
run;
title "The current time is &timenow and the date is &datenow";
ods listing;
proc print data=sashelp.class;
run;
cynthia
Also from @Doc_Duke:
Be aware that the title is somewhat misleading. That method prints the date and time the DATA _NULL_; step was run, not the "current" date and time (It was current then but may not be current when printed.). That doesn't matter much for short jobs, but can be an important difference in definition for ones that run for hours or days. Look at http://support.sas.com/kb/8/682.html for an option that gets "closer" to current.
Hi:
Are you following your TITLE statement with a procedure or some process that -uses- a TITLE statement??? Normally, the title statement by itself just changes the title in the SAS "holding area" for titles. You wouldn't see the results of the TITLE statement unless you did this:
options nodate;
data _null_;
call symput ('timenow',put (time(),time.));
call symput ('datenow',put (date(),date9.));
run;
title "The current time is &timenow and the date is &datenow";
ods listing;
proc print data=sashelp.class;
run;
cynthia
Also from @Doc_Duke:
Be aware that the title is somewhat misleading. That method prints the date and time the DATA _NULL_; step was run, not the "current" date and time (It was current then but may not be current when printed.). That doesn't matter much for short jobs, but can be an important difference in definition for ones that run for hours or days. Look at http://support.sas.com/kb/8/682.html for an option that gets "closer" to current.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: