SAS Enterprise Miner 5 and later produce Java translations of some of the generated DATA step scoring code.
To produce valid Java code, a system environment variable must be defined for the SAS Enterprise Miner workspace server.
If the system environment variable is not defined correctly, then Java code might not be created correctly. The following error might appear in the log of a Score node log:
TScore NOTE: Start Java code generation ........ PATHJSCORECODE.sas 1: Invalid classpath. ERROR: TScore Java code generation failed, attempting error termination.
The DTJ_CLASSPATH environment variable must contain absolute paths for a SAS Enterprise Miner-distributed file, "dtj.jar", and for the Java Runtime library. On most systems, the Java Runtime library is named "rt.jar" but, on AIX systems, it is named "core.jar". These files are distributed as part of SAS® Foundation Services and of SAS Enterprise Miner.
To produce valid Java scoring code, modify the SAS configuration file for the SAS Enterprise Miner workspace server, to create and set the required environment variable.
Important: After making the modifications, re-start SAS Enterprise Miner so that that changes are incorporated. If you are trying to obtain Java score code for a flow that you already ran, then force the flow to run again to generate Java score code. To force the flow to run again, go to the first node in the flow, and make sure that the Rerun property is set to Yes. Then, run the flow.
Windows Systems
First locate and make a backup copy of the SAS workspace server primary configuration file.
In a default SAS 9.1.3 installation, the configuration file is:
In a default SAS 9.2 installation, the configuration file is:
The paths used in this example are for a default installation. Your paths might vary depending on how SAS was installed.
Edit the primary configuration file for the workspace server. In a default installation on Windows, the new SET statement line might look something like this:
SAS Enterprise Miner 5.x
-SET DTJ_CLASSPATH "!SASROOT\dmine\sasmisc\dtj.jar;!SASROOT\..\Shared Files\JRE\1.4.1\lib\rt.jar"
SAS Enterprise Miner 6.x
-SET DTJ_CLASSPATH "!SASROOT\dmine\sasmisc\dtj.jar;C:\Program Files\Java\jre1.5.0_15\lib\rt.jar"
UNIX systems
A configuration file named sasv9_local.cfg is created in the !SASROOT directory to store user-specified settings. Settings in this file remain in place during upgrades to the SAS installation. The setting override default option values when the same options are found in both the sasv9_local.cfg and the sasv9.cfg files. Locate and make a backup copy of the sasv9_local.cfg file for the SAS workspace server. The paths used in this note are for a default installation. Your paths might vary depending on how SAS was installed.
Edit the sasv9_local.cfg file for the workspace server.
In a default installation on UNIX (not on AIX systems), the new SET statement line might look something like this:
SAS Enterprise Miner 5.x
-SET DTJ_CLASSPATH "!SASROOT/misc/dmine/dtj.jar:!SASROOT/sasjre/1.4.1/lib/rt.jar"
SAS Enterprise Miner 6.x
-SET DTJ_CLASSPATH "!SASROOT/misc/dmine/dtj.jar:!SASHOME/jre1.5.0_12/lib/rt.jar"
In a default installation on AIX systems, the new SET statement line might look something like this:
SAS Enterprise Miner 5.x
-SET DTJ_CLASSPATH "!SASROOT/misc/dmine/dtj.jar:!SASROOT/sasjre/1.4.1/lib/core.jar:"
SAS Enterprise Miner 6.x
-SET DTJ_CLASSPATH "!SASROOT/misc/dmine/dtj.jar:/!SASHOME/jre1.5_SR5/jre/lib/vm.jar:SASHOME/jre1.5_SR5/jre/lib/core.jar:"
Make sure that you include the colon (:) at the end. Your path for the rt.jar, vm.jar, or core.jar file might vary due to the Java version that is installed.
SAS Enterprise Miner 13.x and 12.3
On AIX systems, the file rt.jar is split into two files, "core.jar" and "vm.jar". The vm.jar file is not available with the SAS Private Java Runtime Environment. You need to install another Java Runtime Environment that has the core.jar and the vm.jar files.
Edit the sasv9_local.cfg file under SASHOME/SASFoundation/9.4. Add the following SET statement as per your Java Runtime Environment installation directory.
-SET DTJ_CLASSPATH "SASHOME/SASFoundation/9.4/misc/dmine/dtj.jar:JRE_INSTALL/jre/lib/vm.jar:JRE_INSTALL/jre/lib/core.jar:"
JRE_INSTALL is the location where you have Java Runtime Environment installed.
Product Family | Product | System | Product Release | SAS Release | ||
Reported | Fixed* | Reported | Fixed* | |||
SAS System | SAS Enterprise Miner | 64-bit Enabled AIX | 5.1 | 9.1 TS1M3 SP2 | ||
64-bit Enabled Solaris | 5.1 | 9.1 TS1M3 SP2 | ||||
HP-UX IPF | 5.1 | 9.1 TS1M3 SP2 | ||||
Windows Vista | 5.1 | 9.1 TS1M3 SP2 | ||||
Microsoft Windows XP Professional | 5.1 | 9.1 TS1M3 SP2 | ||||
Microsoft Windows Server 2003 Standard Edition | 5.1 | 9.1 TS1M3 SP2 | ||||
Microsoft Windows Server 2003 Enterprise Edition | 5.1 | 9.1 TS1M3 SP2 | ||||
Microsoft Windows 2000 Datacenter Server | 5.1 | 9.1 TS1M3 SP2 | ||||
Microsoft Windows 2000 Server | 5.1 | 9.1 TS1M3 SP2 | ||||
Microsoft Windows 2000 Professional | 5.1 | 9.1 TS1M3 SP2 | ||||
Microsoft Windows NT Workstation | 5.1 | 9.1 TS1M3 SP2 | ||||
Microsoft Windows Server 2003 Datacenter Edition | 5.1 | 9.1 TS1M3 SP2 | ||||
Microsoft Windows 2000 Advanced Server | 5.1 | 9.1 TS1M3 SP2 | ||||
Microsoft® Windows® for x64 | 13.2 | |||||
Microsoft Windows Server 2008 | 13.2 | |||||
Microsoft Windows Server 2008 R2 | 13.2 | |||||
Microsoft Windows Server 2008 for x64 | 13.2 | |||||
Linux for x64 | 13.2 | |||||
Solaris for x64 | 13.2 |
Type: | Usage Note |
Priority: |
Date Modified: | 2017-10-31 11:01:07 |
Date Created: | 2005-02-11 13:41:27 |