Macros for SAS Application Developers File Reference

Streams a file to _webout according to content type. More...

Go to the source code of this file.

Detailed Description

Will set headers using appropriate functions per the server type (Viya, EBI, SASjs Server) and stream content using mp_binarycopy().


filename mc url
%inc mc;

[in]contenttype=(TEXT) Supported:
[in]inloc=/path/to/file.ext to be sent
[in]inref=fileref of file to be sent (if provided, overrides inloc)
[in]iftrue=(1=1) Provide a condition under which to execute.
[out]outname=the name of the file, as downloaded by the browser
[out]outref=(_webout) The destination where the file should be streamed.

SAS Macros

Allan Bowe

Definition in file