Import SAS Model Package Files

What Is a SAS Model 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 a user to import into SAS Model Manager a complete model that is not registered in a SAS Metadata Repository.

Create SAS Package Files in SAS Enterprise Miner

To create an SPK file for an existing SAS Enterprise Miner model:
  1. Open the SAS Enterprise Miner diagram that contains the model, and then run the model.
  2. After the model run is complete, you can 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.

About Creating 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 Create a SAS Package File Using a SAS/STAT Item Store.

Import Package Files

Note: Before you import a model into your project's version, verify that the model type matches the Model Function property setting on the Project Properties panel. For more information about model functions, see Specific Properties for a Project.
To import package files into SAS Model Manager, follow these steps.
  1. In the Project Tree, navigate to the project's version.
    MMRootthen selectorganizational folderthen selectproject folderthen selectversion folder
  2. Right-click the Models folder and select Import fromthen selectSAS Model Package File.
    Import From SAS Model Package File
  3. Navigate to the location of the SAS model package (SPK) file and select the file.
  4. To change the name of the model, enter a text value in the Model name box. The value of the Model name box appears as the model name in the Project Tree.
  5. Click OK. After the SAS Model Manager processes the model import request, the new model appears in the Models folder of your project's version.
  6. Repeat steps 2 through 5 to import additional model package files from your client workstation folder.