给你段代码,自己对照改吧
Data work.test(label="日股票综合数据");
Infile 'M:\sh999999.txt' delimiter = '09'x Missover Dsd lrecl=32767 firstobs=3 ;
Format Date YYMMDD10.;
Format Oprice 12.2;
Format Hprice 12.2;
Format Lprice 12.2;
Format Cprice 12.2;
Format Vol 12.2;
Format VOLmoney 12.2;
Informat Date YYMMDD10.;
Informat Oprice 12.2;
Informat Hprice 12.2;
Informat Lprice 12.2;
Informat Cprice 12.2;
Informat Vol 12.2;
Informat Volmoney 12.2;
Label Date="日期";
Label Oprice="开盘价";
Label Hprice="最高价";
Label Lprice="最低价";
Label Cprice="收盘价";
Label Vol="成交量";
Label Volmoney="成交金额";
Input
Date Oprice Hprice Lprice Cprice Vol Volmoney;
Run;