文件第一个变量比较麻烦,不知道该怎么读入。
Data A1(label="万科A");
Infile 'M:\000157.txt' delimiter = '09'x Missover Dsd lrecl=32767 firstobs=3 ;
Format date yymmdd10.;
format time time5.;
Format OpPr COMMA19.2;
Format HiPr COMMA19.2;
Format LoPr COMMA19.2;
Format ClPr COMMA19.2;
Format TrdVol 21.2;
Informat date yymmdd10.;
informat time time5.;
Informat OpPr COMMA19.2;
Informat HiPr COMMA19.2;
Informat LoPr COMMA19.2;
Informat ClPr COMMA19.2;
Informat TrdVol 21.2;
Label date="交易日期";
Label OpPr="开盘价";
Label HiPr="最高价";
Label LoPr="最低价";
Label ClPr="收盘价";
Label TrdVol="成交量";
Input
date time OpPr HiPr LoPr ClPr TrdVol ;
Run;
这个读入的时间总是不对。