CACHE访问方式

CACHE access method

我正在调试将 PDF 写入 _webout 的存储过程 Web 应用程序。

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

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

我试过 filename _webout tempfilename _webout dummy,都没有用。

现场有什么提示吗?

你试过了吗

filename _webout cache;

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

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

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

用法:

    %if %mf_getxengine(_WEBOUT)=STREAM %then %do;
      /* set header function */
    %end;