Problem Note 33599: ERROR: Unable to load CLASS entry .CLASS when running batch code containing extension nodes
In SAS
® Enterprise Miner™ 5.3, after developing an extension node, you can use it in your projects. If you create a diagram flow and then save the flow as a SAS program, you can run this flow as a batch program.
However, running any batch program that contains extension node code returns the following error in the log:
ERROR: Unable to load CLASS entry .CLASS.
ERROR: Exception thrown.
exception.server.WORKSPACE.CLASSNAMENOTFOUND,,CodeExport in SASHELP.EMCORE.EMSERVERWORKSPACE.SCL at line 1497.
Program returning prematurely at line 256
AF Program: SASHELP.EMCORE.EMAPI.SCL
This error occurs because the extension node was added after the product was released. In order for nodes developed as extensions to run as batch, they need to be registered in the SASHELP.EMTOOLS data set. The Full Code tab contains code you can run to work around this problem.
Operating System and Release Information
SAS System | SAS Enterprise Miner | Microsoft® Windows® for 64-Bit Itanium-based Systems | 5.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 5.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 5.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows XP 64-bit Edition | 5.3 | | 9.1 TS1M3 SP4 | |
Microsoft® Windows® for x64 | 5.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Advanced Server | 5.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Datacenter Server | 5.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Server | 5.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Professional | 5.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows NT Workstation | 5.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter Edition | 5.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Enterprise Edition | 5.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Standard Edition | 5.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows XP Professional | 5.3 | | 9.1 TS1M3 SP4 | |
64-bit Enabled AIX | 5.3 | | 9.1 TS1M3 SP4 | |
64-bit Enabled HP-UX | 5.3 | | 9.1 TS1M3 SP4 | |
64-bit Enabled Solaris | 5.3 | | 9.1 TS1M3 SP4 | |
HP-UX IPF | 5.3 | | 9.1 TS1M3 SP4 | |
Linux | 5.3 | | 9.1 TS1M3 SP4 | |
Linux on Itanium | 5.3 | | 9.1 TS1M3 SP4 | |
Solaris for x64 | 5.3 | | 9.1 TS1M3 SP4 | |
Tru64 UNIX | 5.3 | | 9.1 TS1M3 SP4 | |
*
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.
This is a sample program that will need to be run in order that extension nodes can be run as part of a batch program. You will need to enter values for the three macro variables.
%let compname=; ****Component name;
%let extensionflag=; ****For example, Code Export node would be CodeExportflag;
%let traincode=; ****Source SAS code file name;
data sashelp.emtool;
set sashelp.emtool end=eof;
retain &extensionflag 0;
if component= "&compname" then &extensionflag = 1;
output;
drop &extensionflag;
if eof then do;
if ^&extensionflag then do;
component= "&compname";
class= "SASHELP.EMCORE.EXTENSION.CLASS";
Traincode= "&traincode";
output;
end;
end;
run;
Creating a batch program within SAS Enterprise Miner that contains extension node's code will produce this error when it is run.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2008-10-16 12:53:06 |
Date Created: | 2008-10-14 10:25:44 |