filename repmacro catalog 'sashelp.modelmgr.reportmacros.source'; %inc repmacro;
libname
mm_jobs "c:\mmReports\HMEQ";
libname
mm_meta "c:\mmReports\HMEQ\model";
libname
scoreIn "c:\mmReports\project1\perfdatasets";
%let
_MM_JobLocalPath=c:\mmReports\HMEQ1;
%let
_MM_ModelLocalPath=c:\mmReports\HMEQ\model;
mapTable=mm_meta.current
.
The data set name current
is arbitrary.
It is recommended that you use the name current
.
%let
_MM_Service_Registry_URL=%nrstr(http://myServer:80/SASWIPClientAccess/remote/ServiceRegistry);
%let
_MM_ReportMode=TEST;
filename pwfile "my-network-path\pwfile";
proc pwencode in="12345" out=pwfile;
run;
filename pwfile "my-network-path\pwfile";
%let _MM_User=mmuser1;
data _null_;
infile pwfile obs=1 length=l;
input @;
input @1 line $varying1024. l;
call symput('_MM_Password',substr(line,1,l));
run;
localPath=&_MM_ModelLocalPath
mapTable=&mapTable
user=&_MM_User
/* Source file name: sashelp.modelmgr.reportExample4.source */ FILENAME repmacro catalog 'sashelp.modelmgr.reportmacros.source'; %inc repmacro; /* Fileref to the encoded password */ FILENAME pwfile "my-network-path\pwfile"; /**************************************************/ /* Specify the report execution metadata and */ /* configure the _MM_ macro variables to run the */ /* report job in TEST mode. */ /**************************************************/ %let _MM_ReportMode=TEST; %let _MM_User=mmuser1; data _null_; infile pwfile obs=1 length=l; input @; input @1 line $varying1024. l; call symput('_MM_Password',substr(line,1,l)); run; ; %let _mm_Service_Registry_URL= %nrstr(http://myServer:80/SASWIBClientAccess/remote/ServiceRegistry); %let _MM_PathMayChange=Y; %let _MM_JobLocalPath=c:\mm.test\report.auto; %let _MM_ModelLocalPath=c:\mm.test\model.extraction; LIBNAME mm_jobs "&_MM_JobLocalPath"; LIBNAME mm_meta "&_MM_ModelLocalPath"; LIBNAME scoreIn 'c:\mm.test\score.in'; %let mapTable=mm_meta.current; /***************************************************/ /* DATA step scoreIn.hmeq0 */ /* */ /* First, run the 2012Q4 report.It is necessary to */ /* artificially declare a "currentTime" argument */ /* of 01Jan2013 in order to trigger the report */ /* execution scheduled for the 2012Q4 interval. */ /***************************************************/ DATA scoreIn.hmeq0; set scoreIn.hmeq_2012Q4; run; %let currentTime=01Jan2013:12:30:15; %MM_RunReports( localpath=&_MM_JobLocalPath, currentTime=¤tTime, mapTable=&mapTable, user=&_MM_User, password=&_MM_Password); /***************************************************/ /* Now, run the 2012Q1 report. It is necessary to */ /* artificially declare a "currentTime" argument */ /* of 03Apr2012 in order to trigger the report */ /* execution scheduled for the 2012Q1 interval. */ /***************************************************/ DATA scoreIn.hmeq0; set scoreIn.hmeq_2012q1; run; %let currentTime=03Apr2012:12:30:15; %MM_RunReports( localpath=&_MM_JobLocalPath, currentTime=¤tTime, mapTable=&mapTable, user=&_MM_User, password=&_MM_Password); /***************************************************/ /* Now, run the 2012Q2 report. It is necessary to */ /* artificially declare a "currentTime" argument */ /* of 03Jul2012 in order to trigger the report */ /* execution scheduled for the 2012Q2 interval. */ /***************************************************/ DATA scoreIn.hmeq0; set scoreIn.hmeq_2012q2; run; %let currentTime=03Jul2012:12:30:15; %MM_RunReports( localpath=&_MM_JobLocalPath, currentTime=¤tTime, mapTable=&mapTable, user=&_MM_User, password=&_MM_Password); /***************************************************/ /* Now, run the 2012Q3 report. It is necessary to */ /* artificially declare a "currentTime" argument */ /* of 03Oct2012 in order to trigger the report */ /* execution scheduled for the 2012Q3 interval. */ /***************************************************/ DATA scoreIn.hmeq0; set scoreIn.hmeq_2012q3; run; %let currentTime=03Oct2012:12:30:15; %MM_RunReports( localpath=&_MM_JobLocalPath, currentTime=¤tTime, mapTable=&mapTable, user=&_MM_User, password=&_MM_Password); /***************************************************/ /* Now, run the 2012Q4 report. It is necessary to */ /* artificially declare a "currentTime" argument */ /* of 03Jan2013 in order to trigger the report */ /* execution scheduled for the 2012Q4 interval. */ /***************************************************/ DATA scoreIn.hmeq0; set scoreIn.hmeq_2012q4; run; %let currentTime=03Jan2013:12:30:15; %MM_RunReports( localpath=&_MM_JobLocalPath, currentTime=¤tTime, mapTable=&mapTable, user=&_MM_User, password=&_MM_Password);