[code:3akymxpj]data;
ac ='200905'; *if the date is a string;
an =input(ac, yymmn6.);
put an=yymms.;
an ='01may2009'd; *if the date is a numeric date;
put an=yymms.;
run;[/code:3akymxpj]
JingJu
[quote="jingju11":1p3rz9nr][code:1p3rz9nr]data;
ac ='200905'; *if the date is a string;
an =input(ac, yymmn6.);
put an=yymms.;
an ='01may2009'd; *if the date is a numeric date;
put an=yymms.;
run;[/code:1p3rz9nr]
JingJu[/quote:1p3rz9nr]
先谢过,去试试!
[quote="jingju11":3m53558y][code:3m53558y]data;
ac ='200905'; *if the date is a string;
an =input(ac, yymmn6.);
put an=yymms.;
an ='01may2009'd; *if the date is a numeric date;
put an=yymms.;
run;[/code:3m53558y]
JingJu[/quote:3m53558y]