%MM_GetURL Macro

Translates a specified SAS Decision Manager UUID to a URL-style path address and sets the URL as the value of the _MM_URL and _MM_ResourcesURL macro variables.

Syntax

%MM_GetURL(ID=UUID, <Trace=ON | OFF> );

Arguments

ID=UUID

specifies the UUID of the object for which an URL is desired. A SAS Decision Manager UUID is a 36-character string that identifies a single object in the SAS Decision Manager model repository. The ID argument is required.

Example ID=cca1ab08-0a28-0e97-0051-0e3991080867

Trace=ON | OFF

specifies whether to supply verbose trace messages to the SAS log.

Default OFF
Example Trace=on

Details

The %MM_GetURL macro sets the value of the global macro variable _MM_URL to the URL of the specified object’s UUID.
If the ID argument specifies a SAS Decision Manager project, version, or model, then the macro sets the global macro variable _MM_ResourcesURL to the URL of that object's associated Resources folder.
The %MM_GetURL macro does not set a value for the global macro variable, _MM_CID.

Example

/***************************************************/ 
/* Get the URL for the location of a model.         */
/****************************************************/

Options nomlogic nomprint nospool;

/****************************************************/ 
/* Get the Model Management macro code.            */ 
/***************************************************/
FILENAME MMAccess catalog 'sashelp.modelmgr.accessmacros.source'; 
%include MMAccess;

/***************************************************/ 
/* Set to detect failure in case macro load fails  */
/* and get the URL.                                */ 
/***************************************************/ 

%let _MM_RC= -1; 

%let target=aef7a78e-0a28-0e97-01c0-b8a0e5ba15c7; 
%MM_GetURL(ID=&target,Trace=on); 
%put _MM_URL=&_MM_URL; 
%put _MM_ResourcesURL=&_MM_ResourcesURL;
Last updated: February 22, 2017