|
|
楼主

楼主 |
发表于 2008-7-9 11:57:20
|
只看该作者
LIBNAME filename is not assigned
客户端调用sas语句时总是提示“LIBNAME filename is not assigned"。请教一下是否调用语句写错了,如下:
string str = "filename indata pipe 'dir D:\sasdata\mydir /b';data file_list;length fname $50.;infile indata truncover; input fname $50.;call symput ('num_files',_n_); run;";
ADODB.Connection adoConnection = new ADODB.Connection();
adoConnection.Open("Provider=sas.IOMProvider.1; Data Source=_LOCAL_;", "", "", 0);
ADODB.Recordset adoRecordset = new ADODB.Recordset();
adoRecordset.ActiveConnection = adoConnection;
adoRecordset.Open(str , Missing.Value, ADODB.CursorTypeEnum.adOpenForwardOnly,
ADODB.LockTypeEnum.adLockReadOnly, (int)ADODB.CommandTypeEnum.adCmdTableDirect );
希望各位高人能给指点一下。 |
|