Problem Note 20399: Model package score code might be truncated
In SAS
® Enterprise Miner, score code that is stored in a model
package might be truncated if the score code has user-written code
containing tab characters.
The userscorecode.sas file that is created within the SAS Enterprise Miner project is not truncated. Truncation (usually at 80 characters) occurs when a model package is created from that code. This truncated score code is stored with the model package, and if you attempt to run this truncated code, you will see various errors depending on the specific lines of code that are truncated.
To circumvent this problem, add the following workaround code to the project startup code of your SAS Enterprise Miner session.
data _null_;
path = pathname('WORK')!!'/'!!'autowrap.txt';
put path=;
call symput('regfile', path);
run;
%put ®file;
filename source "®file";
data _null_;
file source;
put '[PRODUCTSAFRun TimePreview Window]';
put '"Autowrap"="Yes"';
run;
proc registry import=source;
run;
filename source;
run;
A more global solution is to save the workaround code in a .sas file on the server and, to specify that .sas file in the Initialization Code parameter
for the SAS Enterprise Miner workspace server properties. This global
solution will put the code in place for all SAS Enterprise Miner users who launch SAS Enterprise Miner through SAS® Analytics Platform. This global solution will also eliminate the need for each SAS Enterprise Miner user to place the workaround code within the project startup code of each of their SAS Enterprise Miner projects.
Follow the steps below to add this workaround code to the Initialization Code parameter for your SAS Enterprise Miner workspace server properties.
- Save the work-around code in a .sas file on the workspace server.
- Invoke SAS® Management Console
- Expand Application Management
- Expand Enterprise Miner
- Expand Projects
- Right click on the Workspace server and choose Properties
Enter the path to the .sas file in the Initialization Code
property field.
- Restart SAS Analytics Platform
Operating System and Release Information
| SAS System | SAS Enterprise Miner | Microsoft® Windows® for 64-Bit Itanium-based Systems | 5.2 | 6.1 | 9.1 TS1M3 | 9.2 TS2M0 |
| Microsoft Windows XP Professional | 5.2 | 6.1 | 9.1 TS1M3 | 9.2 TS2M0 |
| Microsoft Windows Server 2003 Standard Edition | 5.2 | 6.1 | 9.1 TS1M3 | 9.2 TS2M0 |
| Microsoft Windows Server 2003 Datacenter Edition | 5.2 | 6.1 | 9.1 TS1M3 | 9.2 TS2M0 |
| Microsoft Windows Server 2003 Enterprise Edition | 5.2 | 6.1 | 9.1 TS1M3 | 9.2 TS2M0 |
| Microsoft Windows 2000 Datacenter Server | 5.2 | | 9.1 TS1M3 | |
| Microsoft Windows 2000 Server | 5.2 | | 9.1 TS1M3 | |
| Linux | 5.2 | 6.1 | 9.1 TS1M3 | 9.2 TS2M0 |
| AIX | 5.2 | 6.1 | 9.1 TS1M3 | 9.2 TS2M0 |
| 64-bit Enabled AIX | 5.2 | 6.1 | 9.1 TS1M3 | 9.2 TS2M0 |
| Microsoft Windows 2000 Advanced Server | 5.2 | | 9.1 TS1M3 | |
| Solaris for x64 | 5.2 | 6.1 | 9.1 TS1M3 | 9.2 TS2M0 |
| HP-UX IPF | 5.2 | 6.1 | 9.1 TS1M3 | 9.2 TS2M0 |
*
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.
| Type: | Problem Note |
| Priority: | medium |
| Topic: | Analytics ==> Data Mining Analytics ==> Transformations
|
| Date Modified: | 2009-07-02 08:20:32 |
| Date Created: | 2007-06-15 14:57:41 |