Translates a specified SAS Model Manager UUID to a URL-style path address and sets the URL as the value of the _MM_URL and _MM_ResourcesURL macro variables.
specifies the UUID of the object for which an URL is desired. A SAS Model Manager UUID is a 36-character string that identifies a single object in the SAS Model Manager model repository. The UUID argument is required.
Example | UUID=cca1ab08-0a28-0e97-0051-0e3991080867 |
specifies whether to supply verbose trace messages to the SAS log.
Default | OFF |
Example | Trace=on |
/***************************************************/
/* Get the URL for the location of a model. */
/****************************************************/
Options nomlogic nomprint nospool;
/****************************************************/
/* Get the SAS Model Manager 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;