i use sql to get a macro variable as the name of a file, then want to read this file, but found problems
two programs are as follows; is there any diffence btw them
first,
PROC IMPORT OUT= WORK.t
DATAFILE= "C:\Users\rong\Documents\high-frequency\2006\20061
1\200611sh_csv\sh\20061101\SH000001.csv"
DBMS=CSV REPLACE;
GETNAMES=YES;
DATAROW=2;
RUN;
second
proc sql noprint;
select code
into: wkbnm
from jj
where row=1;
%put &wkbnm;
PROC IMPORT OUT= WORK.t
DATAFILE= "C:\Users\rong\Documents\high-frequency\2006\20061
1\200611sh_csv\sh\20061101\&wkbnm..csv"
DBMS=CSV REPLACE;
GETNAMES=YES;
DATAROW=2;
RUN;
jj is as follows
code row
SH000001 1
SH000002 2
SH000003 3