Production Ready Macros for SAS Application Developers File Reference

Create a Document object in a metadata folder. More...

Go to the source code of this file.

Detailed Description

Document objects are useful for storing properties in metadata. This macro is idempotent - it will not create an object with the same name in the same location, twice. Note - the filerefs are left open, to enable inspection after running the macro (or importing into an xmlmap if needed).


%mm_createdocument(tree=/User Folders/sasdemo


tree=The metadata folder uri, or the metadata path, in which to create the document. This must exist.
name=Document object name. Avoid spaces.
desc=Document description (optional)
textrole=TextRole property (optional)
frefin=fileref to use (enables change if there is a conflict)
frefout=fileref to use (enables change if there is a conflict)
mDebug=set to 1 to show debug messages in the log
Allan Bowe

Definition in file