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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
actually you could quite simply just change &sysdate to "&sysdate"d <-- note the additional double quotation marks and a 'd' at the end.
ASKER