Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mm_getstpcode.sas File Reference

Writes the code of an STP to an external file. More...

Go to the source code of this file.

Detailed Description

Fetches the SAS code from a Stored Process where the code is stored in metadata.

Usage:

%mm_getstpcode(tree=/some/meta/path
  ,name=someSTP
  ,outloc=/some/unquoted/filename.ext
)
Parameters
[in]tree=The metadata path of the Stored Process (can also contain name)
[in]name=Stored Process name. Leave blank if included above.
[out]outloc=(0) full and unquoted path to the desired text file. This will be overwritten if it already exists.
[out]outref=(0) Fileref to which to write the code.
[out]showlog=(NO)Set to YES to print log to the window

SAS Macros

Author
Allan Bowe

Definition in file mm_getstpcode.sas.