Link to home
Start Free TrialLog in
Avatar of sonmic
sonmic

asked on

Problem with sas-dates

Hi,

I have a part of a macro :
%IF &DateCopy eq &DateOrg And &DateCopy ne &sysdate %THEN %DO ;
which compares the modification dates of 2 files. This is not enough, so I must also compare one of the dates with the current date.
%PUT &DateCopy &DateOrg &sysdate ;
18555    18555 20OCT10
I believe that the problem is the &sysdate.
How can i solve this?
Tx
ASKER CERTIFIED SOLUTION
Avatar of theartfuldazzler
theartfuldazzler
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sonmic
sonmic

ASKER

Tx
Avatar of Aloysius Low
actually you could quite simply just change &sysdate to "&sysdate"d <-- note the additional double quotation marks and a 'd' at the end.