|
Macros for SAS Application Developers
https://github.com/sasjs/core |
Exports everything in a particular metadata folder. More...
Go to the source code of this file.
Will export everything in a metadata folder to a specified location. Note - the batch tools require a username and password. For security, these are expected to have been provided in a protected directory.
Usage:
%* import the macros (or make them available some other way);
filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc;
%* create sample text file as input to the macro;
filename tmp temp;
data _null_;
file tmp;
put '%let mmxuser=sasdemo;';
put '%let mmxpass=Mars321';
run;
filename outref "%sysfunc(pathname(work))";
%mmx_spkexport(
metaloc=%str(/30.Projects/3001.Internal/300115.DataController/dc1)
,secureref=tmp
,outspkpath=%str(/tmp)
)
| [in] | metaloc= | the metadata folder to export |
| [in] | secureref= | () fileref containing the username / password (should point to a file in a secure location) |
| [in] | outspkname= | name of the spk to be created (default is mmxport). |
| [in] | outspkpath= | ((sysfunc(pathname(WORK))) directory in which to create the SPK. |
Definition in file mmx_spkexport.sas.