This Article covers commonly used functionality regarding SAS Enterprise Miner model packages:
For information about how to create a model package, see SAS KB0036530, "Creating a model package (SPK file) in SAS® Enterprise Miner(tm)".
In SAS Enterprise Miner, you can find more information about model packages. Select Help ► Contents ► SAS Enterprise Miner User Interface Help. Additional information is available in other chapters under Help.
To use Enterprise Miner to view the diagram, results, and logs from an SPK file, open a project. Then, select File ► Open Model Package... Navigate to the location of the SPK file, and click Open. An SPK Viewer window is displayed.
Example:
Here is some functionality that exists within the SPK Viewer window.
Example:
Select View ► SAS Results ► Log if you want to view the log.
Example:
Example:
The (re-created) new diagram can be used just as you would use any other diagram. You can run the flow if the librefs that were defined when the original diagram was created exist in this project before you re-create the diagram. In the Input Table Attributes screen above, the Library Name called SAMPSIO is the libref. This libref is created automatically when SAS Enterprise Miner is installed. One method for defining your own libref in Enterprise Miner is to use the Project Start Code to run a LIBNAME statement. For details within Enterprise Miner, select Help ► Contents ► SAS Enterprise Miner User Interface Help ► Project Start Code. For other methods, see Help ► Contents ► Data Sources ► SAS Enterprise Miner Data Sources.
You can also examine the contents of an SPK file using an unzipping utility such as WinZip. Using WinZip to examine the contents is useful when logs are too long to be displayed using the SPK Viewer. (Long logs are truncated by the SPK Viewer, and a message is displayed at the bottom of the truncated log.) Opening the SPK file in WinZip displays an SPK for each node in your diagram. You need to open the SPK file that corresponds to the node of interest in order to view the log for the node. The node's log is in a file named "EMLOG.log". Diagrams cannot be displayed using this method. To view the diagram, use the SPK Viewer as described above.
Example: