Production Ready Macros for SAS Application Developers
https://github.com/sasjs/core
mm_createdocument.sas 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).

usage:

%mm_createdocument(tree=/User Folders/sasdemo
  ,name=MyNote)

Dependencies

Parameters
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
Author
Allan Bowe

Definition in file mm_createdocument.sas.