CACHE access method

252 Views Asked by At

I'm debugging a Stored Process Web Application that writes a PDF to _webout.

I'd like to avoid the following ERROR when running in a workspace session:

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

I've tried filename _webout temp and filename _webout dummy, to no avail.

Any tips from the field?

2

There are 2 best solutions below

2
On BEST ANSWER

Have you tried

filename _webout cache;

That seems to work in my version, but I have no idea where the output goes.

0
On

An alternative is to check the engine type of the _webout fileref and avoid using the header functions if the xengine is STREAM.

This macro serves: https://core.sasjs.io/mf__getxengine_8sas.html

Usage:

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