QDQ_tutu 发表于 2016-6-7 10:58 
你只是存储的文件夹名字不同对吧,循环只是用一个宏变量代替你存储的文件夹的名字的一部分。其他的按正常 ...
也就是说我继续在后面补充具体的文件名吗?因为一般的操作(单个导入)是这样的:
DATA TRD_Dalyr (Label="");
Infile 'D:\GTA_SAS\
TRD_Dalyr.txt' encoding="utf-8" delimiter = '09'x Missover Dsd lrecl=32767 firstobs=2;
Format Stkcd $6.;
Format Trddt $10.;
Format Adjprcwd 14.;
Format Markettype 10.;
Informat Stkcd $6.;
Informat Trddt $10.;
Informat Adjprcwd 14.;
Informat Markettype 10.;
Label Stkcd="证券代码";
Label Trddt="交易日期";
Label Adjprcwd="考虑现金红利再投资的收盘价的可比价格";
Label Markettype="市场类型";
Input Stkcd $ Trddt $ Adjprcwd Markettype ;
Run;
这里没有更改储存路径,仅仅是放上来方便大家看。蓝色字体表示需要具体到文件名的数据集,我是直接在你的代码下增加这个就可以了吗?