If you are working through the "Build decision tree model" section of the Getting Started with SAS® Enterprise Miner™ tutorial, using the SAS Enterprise Miner 4.x client, you might encounter the error:
The format <format name> was not found or could not be loaded.
The problem occurs when SAS cannot locate the catalog entry for a format that
is associated with a variable in your data set. It is most likely due to assignment of the SAMPSIO library when many SAS products are licensed, and the concatenation string of directories to define the SAMPSIO library becomes large.
To confirm this as the problem, first follow the steps to reproduce your
error.
Next, open the file "VIEWERSETUP.SAS" from your "<project folder>\emproj" folder using the SAS Editor, or a plain text editor such as Microsoft Notepad. This file contains the initialization statements for the Interactive Tree. The assignment for the SAMPSIO library may look similar to the following:
libname SAMPSIO '( 'C:\Program Files\SAS\SAS 9.1\core\sample'
'C:\Program Files\SAS\SAS 9.1\dmine\sample' 'C:\Program Files\SAS\
SAS 9.1\inttech\sample' 'C:\Program Files\SAS\SAS 9.1\access\sample'
'C:\Program Files\SA';
|
Notice these syntax problems in the sample above:
1. there should be no opening quote when the library is a concatenated library
2. the path concatenation string is truncated
3. there is no closing parenthesis
If your definition of SAMPSIO is incomplete, as above, then this is the cause of your error.
To circumvent the error, issue a LIBNAME statement in your SAS Enterprise Miner project start-up code to define SAMPSIO as a single directory. If SAS was installed on your Windows workstation using the default paths, then the assignment for SAMPSIO should look like:
libname SAMPSIO 'C:\Program Files\SAS\SAS 9.1\dmine\sample';
|
To create project start-up code, first open your SAS Enterprise Miner 4.x project on your Windows workstation.
Select the menu items Options -> Project -> Properties.
Select the Initialization tab.
Select the checkbox for "Run start-up code when project opened", then select the Edit... button for that item. An Edit window will open.
Type the above LIBNAME statement in that code window, then close the window. You will be prompted to save the changes.
Select Yes to save the changes.
Select OK to close the Project Properties window.
Close, then reopen, your project. This will cause the project start-up code to run. The library SAMPSIO will be defined now as a single directory on your system, rather than as a concatenation across all product sample directories. The definition provided in the example above includes the sample data and format catalog used in the tutorial.
Follow the instructions for the Tutorial as you were before. You should now be able to open the Tree Desktop Application without errors.
This problem does not occur when you launch SAS® Enterprise Miner™ Tree Desktop Application from within the Enteprise Miner Java Client 5.x or higher.
Operating System and Release Information
SAS System | SAS Enterprise Miner | Microsoft Windows XP Professional | 4.3 | 5.1 | 9.1 TS1M3 | 9.1 TS1M3 |
Microsoft Windows NT Workstation | 4.3 | 5.1 | 9.1 TS1M3 | 9.1 TS1M3 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 4.3 | 5.1 | 9.1 TS1M3 | 9.1 TS1M3 |
Microsoft Windows Server 2003 Enterprise Edition | 4.3 | 5.1 | 9.1 TS1M3 | 9.1 TS1M3 |
Microsoft Windows Server 2003 Standard Edition | 4.3 | 5.1 | 9.1 TS1M3 | 9.1 TS1M3 |
Microsoft Windows 2000 Datacenter Server | 4.3 | 5.1 | 9.1 TS1M3 | 9.1 TS1M3 |
Microsoft Windows 2000 Professional | 4.3 | 5.1 | 9.1 TS1M3 | 9.1 TS1M3 |
Microsoft Windows 2000 Server | 4.3 | 5.1 | 9.1 TS1M3 | 9.1 TS1M3 |
Microsoft Windows Server 2003 Datacenter Edition | 4.3 | 5.1 | 9.1 TS1M3 | 9.1 TS1M3 |
Microsoft Windows 2000 Advanced Server | 4.3 | 5.1 | 9.1 TS1M3 | 9.1 TS1M3 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.