b********y 发帖数: 165 | 1 数据里有一列时间,我需要这列时间大于某个日期的都变成这个日期(7/20/20
09)
请问怎么才能得到这列数据??急 |
d******9 发帖数: 404 | 2 Data T2;
Set T1;
If date gt "20Jul2009"d then date="20Jul2009"d;
Run;
这样行不 ? |
b********y 发帖数: 165 | |
b********y 发帖数: 165 | |
b********y 发帖数: 165 | |
s******r 发帖数: 1524 | 6 If ask questions, had better put some sample data.
Also I do not see any reason why code failed.
【在 b********y 的大作中提到】 : 好像不行
|
h********o 发帖数: 103 | 7 How does it not work for you???
data one;
input date : date9.;
format date date9.;
cards;
01FEB2009
02FEB2009
03FEB2009
04FEB2009
05FEB2009
;
data two;
set one;
if date > "02FEB2009"d then date = "01JAN2010"d;
run;
proc print data = two;
run;
The SAS System
Obs date
1 01FEB2009
2 02FEB2009
3 01JAN2010
4 01JAN2010
5 01JAN2010 |
b********y 发帖数: 165 | 8 thanks a lot it works now...:) |
b********y 发帖数: 165 | 9 thanks a lot it works now...:) |