Report Output in Test and Production Modes

Report Output in Test Mode

When you run the %MM_RunReports() macro, you can either run the report in Test mode or Production mode, by using the _MM_ReportMode macro variable.
To run in Test mode, ensure that you make the following assignments:
  • In the DATA step mm_jobs.project, set the variable testDestination=reportOutputPath, where reportOutputPath is the report output folder on the local computer or network. This is the location that you defined when you completed the prerequisites for running batch performance jobs.
  • In the %MM_RunReports() macro, set the macro variable _MM_ReportMode=TEST.
Test report output is then written to the local computer or network location. You can test your %MM_RunReports() macro any number of times without corrupting the integrity of your model repository. You can delete the contents of the report output folder and resubmit your macro as necessary.
To view the report output, you can copy the files from the report output folder to any version folder whose Resources folder is empty. A best practice would be to create a test version and copy the files to the test version Resources folder. After the files are in the Resources folder, you can select the Performance folder in the version to view the test output. If you do not create a test version, ensure that you delete the files from the Resources folder when you no longer need these files.

Report Output in Production Mode

When you run the %MM_RunReports() macro in Production mode, ensure that you complete the following code changes:
  • In the DATA step mm_jobs.project, remove the assignment of the variable testDestination=reportOutputPath.
  • In the %MM_RunReports() macro, set the macro variable _MM_ReportMode=Production.
Production report output is written to the Resources folder in the default version of the project. To view the report output, you select the Performance folder in the default version.