Production Ready Macros for SAS Application Developers File Reference

Exports everything in a particular metadata folder. More...

Go to the source code of this file.

Detailed Description

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.


%* import the macros (or make them available some other way);
filename mc url "";
%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';

filename outref "%sysfunc(pathname(work))";

SAS Macros

metaloc=the metadata folder to export
secureref=fileref containing the username / password (should point to a file in a secure location)
outspkname=name of the spk to be created (default is mmxport).
outspkpath=directory in which to create the SPK. Default is WORK.
Allan Bowe

Definition in file