我的程序是
[code:f3b10]INIT:
link run; return;
RUN:
submit;
libname sudata '/home2/dev_cbfx/sudata' server=bg_sas01.appsrv;
data ttt.test;
set sudata.suck1400;
run;
endsubmit;
if (_status_ ne 'C') then
do;
if (preview('EDIT') = -1) then
rc=preview('clear');
else
do;
rc=preview('FILE','_webout');
put rc;
end;
end;
else
rc=preview('clear');
return; [/code:f3b10]
报错信息是
ERROR: No logical assign for filename _WEBOUT.
我看应该是rc=preview('FILE','_webout');这一句有问题,是我写法不对吗?
你的回答应该是正中要害了,但我是不清楚,而且还碰到了相同的错误报告,不好意思。你的意思是这样吗?
[code:d5416]INIT:
link run; return;
RUN:
submit continue;
libname sudata '/home2/dev_cbfx/sudata' server=bg_sas01.appsrv;
data ttt.test;
set sudata.suck1400;
run;
filename _webout 'd:\t.txt';
endsubmit;
if (_status_ ne 'C') then
do;
if (preview('EDIT') = -1) then
rc=preview('clear');
else
do;
rc=preview('FILE','_webout');
put rc;
end;
end;
else
rc=preview('clear');
return;[/code:d5416]
我这里没错啊。我只修改了data step的部分。
CODE
[code:2c7ef]INIT:
link run;
return;
RUN:
submit continue; filename _webout 'd:\t.txt'; endsubmit;
submit;
*libname sudata '/home2/dev_cbfx/sudata' server=bg_sas01.appsrv;
libname sudata 'Q:\Test data';
data test;
set sudata.account;
run;
endsubmit;
if (_status_ ne 'C') then
do;
if (preview('EDIT') = -1) then
rc=preview('clear');
else
do;
rc=preview('FILE','_webout');
put rc;
end;
end;
else
rc=preview('clear');
return;[/code:2c7ef]
LOG
[quote:2c7ef]1 filename _webout 'd:\t.txt';
0
2 *libname sudata '/home2/dev_cbfx/sudata'
2 ! server=bg_sas01.appsrv;
3 libname sudata 'Q:\Test data';
NOTE: Libname SUDATA refers to the same physical library as DWH.
NOTE: Libref SUDATA was successfully assigned as follows:
Engine: V8
Physical Name: Q:\Test data
4 data test;
5 set sudata.account;
6 run;
NOTE: There were 5459 observations read from the data set
SUDATA.ACCOUNT.
NOTE: The data set WORK.TEST has 5459 observations and 40
variables.
NOTE: DATA statement used:
real time 0.92 seconds
cpu time 0.26 seconds[/quote:2c7ef]
有问题,你再把代码和LOG贴上来。