I am trying to write a macro that checks a table every 60 seconds to see if there is an entry for today's date. If not, it sleeps 60 seconds, if found, it starts a process. I think I have two problems: not sure if I am using Call Symput correctly, and the &sysdate is character, and I am trying to compare to a date (numberic) value. Any help would be greatly appreciated!
%MACRO AUTO();
%LET WAIT = 'TRUE';
%DO %WHILE (&WAIT = 'TRUE');
%SLEEP(60);
DATA _NULL_;
SET FILES.CHECK;
IF DATE = "&SYSDATE" THEN CALL SYMPUT('WAIT', 'FALSE');
RUN;
%END;
/*PROCESS*/
%MEND AUTO;
Christopher Johnson
www.codeitmagazine.com