Import a Model from a SAS Package File

Import a SAS Package File

A SAS model package (SPK) file is a SAS Enterprise Miner SPK file or an SPK file that was created by using the %AA_Model_Register macro. SPK files contain complete model information. They enable you to import a complete model that is not registered in a SAS Metadata Repository.
To import a model from a SAS model package file:
  1. Click Import model and select from a SAS package file.
    Import Model from SAS Package File
  2. On the Browse tab, click Select a Model and navigate to the location of the file. Select the file to import and click Open.
  3. Enter a name for the model.
  4. Click OK.

Create SAS Package Files in SAS Enterprise Miner

To create SAS Package Files in SAS Enterprise Miner:
  1. Open the SAS Enterprise Miner diagram that contains the model, and then run the model.
  2. After the model run is complete, right-click the node in the SAS Enterprise Miner Diagram Workspace, and select Create Model Package. The new SPK filename appears under the Model Packages folder in your SAS Enterprise Miner Project Navigator.
  3. Right-click the filename and select Save As to copy the SPK file from the SAS Enterprise Miner server to your computer.
  4. Specify a destination folder on your computer, such as, C:\MMData, and save the file to your workstation folder.

Create SAS Package Files Using the %AA_Model_Register Macro

These models can be created by SAS procedures and are supported by SAS Model Manager:
  • SAS/STAT item store models
  • High-performance models
  • SAS/ETS COUNTREG procedure models
  • SAS/ETS SEVERITY procedure models
You can use the %AA_Model_Register macro to create an SPK file to contain these models. For more information, see Overview of Access Macros in SAS Model Manager: Macro Reference.
Last updated: June 12, 2017