BookmarkSubscribeRSS Feed
Doug____
Pyrite | Level 9

I have code that checks the last modified date of a specific dataset and compares it to the current system date. If the modified date of the desired dataset does not match the current system date, the macro then checks a specified number of times at set intervals (10 minutes) to see if the dataset is current. This code works as intended - no issues. What I need help with is when the dates match, how can I execute a process flow (or set of process flows) in the EG project where the macro resides?

 

%IF &MODATETIME2 = &NOW2 %THEN %DO;
    %PUT NOTE:EXECUTE DESIRED PROCESS FLOWS>>>>>>>>>; <<<--what goes here to execute one or more process flows in the project?
   *exit the macro once execution completes;
   %return;
%END;

 

Currently I have %put statements indicating the dates match while I resolve this issue.

1 REPLY 1
ChrisNZ
Tourmaline | Level 20

Why don't you set this as the first step in the process flow? When the step completes successfully, the next step executes.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 437 views
  • 0 likes
  • 2 in conversation