2

我正在调试一个将 PDF 写入_webout.

在工作区会话中运行时,我想避免以下错误:

ERROR: Function is only valid for filerefs using the CACHE access method.

我试过了filename _webout tempfilename _webout dummy但无济于事。

该领域有什么建议吗?

4

2 回答 2

2

你有没有尝试过

filename _webout cache;

这似乎在我的版本中有效,但我不知道输出的去向。

于 2018-01-05T15:21:42.670 回答
0

另一种方法是检查 _webout 文件引用的引擎类型,如果 xengine 是 STREAM,则避免使用标头函数。

此宏服务: https ://core.sasjs.io/mf__getxengine_8sas.html

用法:

    %if %mf_getxengine(_WEBOUT)=STREAM %then %do;
      /* set header function */
    %end;
于 2021-05-01T12:39:02.857 回答