a***e 发帖数: 1627 | 1 Write a macro expression (that could be used for example in an %IF-%THEN
statement) that evaluates to 1 if the value of a macro variable named date
corresponds to a date before the current SAS session was started, and 0
otherwise. (Assume the value of date is in date9 format.) | a***e 发帖数: 1627 | | s******y 发帖数: 352 | 3 %let somedt1=21APR2011;
%let somedt2=01Jun2011;
%put current session date: &sysdate;
%put &somedt1. > &sysdate.? %eval(%sysfunc(inputN(&somedt1,date9))>%sysfunc
(inputN(&sysdate.,date9)));
%put &somedt2. > &sysdate.? %eval(%sysfunc(inputN(&somedt2,date9))>%sysfunc
(inputN(&sysdate.,date9)));
BAOZI please!!
【在 a***e 的大作中提到】 : Write a macro expression (that could be used for example in an %IF-%THEN : statement) that evaluates to 1 if the value of a macro variable named date : corresponds to a date before the current SAS session was started, and 0 : otherwise. (Assume the value of date is in date9 format.)
| a***e 发帖数: 1627 | | a***e 发帖数: 1627 | | s******y 发帖数: 352 | 6 what about this?
%sysfunc(inputN(&somedt2,date9))>%sysfunc(inputN(&sysdate.,date9)) | a***e 发帖数: 1627 | |
|