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
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.