我尝试导入一些包含很长文本字符串的Excel文件。字符串以1,024个字符切断。我尝试过使用DBSASTYPE=(PVS_text="CHAR(2000)")
,TEXTSIZE=32767
并将Excel单元格格式化为文本,但都无济于事。你能告诉我如何阅读整个文本字符串吗?
%macro fileinput;
%local i;
%do i= 1 %to &nfile;
/* Store import path and output filename into macro variables*/
data _null_;
set files(firstobs= &i obs= &i);
call symput('fpath', "&wtransfer.\" || trim(name));
call symput('foutname', trim(newname));
run;
/* Excel import using libname method */
Libname xlout pcfiles
server="&pcfilesserver."
port=&pcfilesport.
path="&fpath.";
data &foutname.;
set xlout.PVS;
textsize=32767;
run;
libname xlout clear;
%end;
%mend;
%fileinput;