这段代码有一些错误,我来帮你修正一下:

data examplel_2;
input price;
time = intnx('month', '01JAN2005'd, 0);
format time monyy.;
datalines;
3.41
3.45
3.42
3.53
3.45
;

proc print data=examplel_2;
run;

修正后的代码会输出以下结果:

Obs    price       time
 1      3.41     JAN05
 2      3.45     JAN05
 3      3.42     JAN05
 4      3.53     JAN05
 5      3.45     JAN05

原文地址: https://www.cveoy.top/t/topic/pEEt 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录