%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(UUID=UUID, <Trace=ON | OFF> );

Arguments

UUID=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 UUID argument is required.

Example UUID=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 SAS Model UUID.
If the UUId argument specifies a SAS Decision Manager 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;

/* Fileref to the encoded password                 */

FILENAME pwfile 'my-network-path\pwfile'; 

/***************************************************/ 
/* Set the SAS WIP Server variables.               */ 
/***************************************************/

%let _MM_Service_Registry_URL=
   %STR(http://abcdef.sas.com:7980/SASWIPClientAccess/remote/ServiceRegistry);
%let _MM_User=miller; 
data _null_;
   infile pwfile obs=1 length=l; 
   input @;
   input @1 line $varying1024. l; 
   call symput('_MM_Password',substr(line,1,l)); 
run;

/***************************************************/ 
/* 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(UUid=&target,Trace=on); 
%put _MM_URL=&_MM_URL; 
%put _MM_ResourcesURL=&_MM_ResourcesURL;