yongyitian 发表于 2013-3-30 23:43 
感谢playmore大侠多次提醒,Proc Timeseries 很是简单。
data test (drop=y);
运行你的代码,产生的数据集是想要的,但是log窗口是如下的warning,不知道有没好的办法去掉这些warning,还望不吝赐教,谢谢!
WARNING: 1 observations have been omitted before observation number 2 in data set WORK.TEST according
to the INTERVAL=YEAR specification and the ID variable values. The current ID is year=12419,
the previous is year=11688.
NOTE: The above message was for the following BY group:
StockID=000005
WARNING: 3 observations have been omitted before observation number 6 in data set WORK.TEST according
to the INTERVAL=YEAR specification and the ID variable values. The current ID is year=12784,
the previous is year=11323.