Hi All,
I would like to get SAS running job while time() < '21:40:00't .
Can you please help to fix it?
Thanks,
HHC
%macro doeveryminute() ;
%*beware the infinite loop ;
%do %while ( time() < '21:40:00't) ;
MY CODE.....
%end ;
%mend ;
%doeveryminute();
%macro do_while_time;
%do %while (%sysfunc(time(),time8.0) LE 23:25:29);
*code here **;
%end;
%mend;
%do_while_time
Macro is a TEXT language, so you can't use the time-literal notation ('23:25:59't).
%macro do_while_time;
%do %while (%sysfunc(time(),time8.0) LE 23:25:29);
*code here **;
%end;
%mend;
%do_while_time
Macro is a TEXT language, so you can't use the time-literal notation ('23:25:59't).
%macro doeveryminute ;
%do %while ( %sysevalf(%sysfunc(time())<'21:40:00't,boolean) ) ;
%put MY CODE.....;
%end ;
%mend ;
%doeveryminute
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.